:root {
    --bg-color: #080808;
    --text-primary: #ededed;
    --text-secondary: #999999;
    --accent: #3b82f6;
    /* Subtle blue */
    --accent-glow: rgba(59, 130, 246, 0.4);
    --border-color: #222;
    --card-bg: #111;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
}

.container {
    max-width: 700px;
    /* Narrower for better readability, cleaner look */
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #fff;
}

/* Header */
header {
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #333, #111);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    border: 1px solid #333;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.header-text h1 {
    font-size: 1.5rem;
    /* Not too big */
    font-weight: 600;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

nav {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero */
#hero {
    margin-bottom: 5rem;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ccc;
    font-weight: 400;
    margin-bottom: 2rem;
}

.highlight {
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid #444;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: #555;
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-1px);
}

/* Sections General */
.section {
    margin-bottom: 5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.section-header .line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #222, transparent);
}

/* Work / Projects */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .project-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    white-space: nowrap;
}

.status {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #111;
    border: 1px solid #333;
    width: fit-content;
}

.status.live {
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.status.sold {
    border-color: rgba(251, 146, 60, 0.3);
    color: #fb923c;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-content p {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.project-link {
    font-size: 0.85rem;
    color: var(--accent);
    opacity: 0.8;
}

.project-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/* Stack */
.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stack-item {
    padding: 0.25rem 0.75rem;
    background: #111;
    border: 1px solid #222;
    border-radius: 100px;
    font-size: 0.8rem;
    color: #888;
    font-family: var(--font-mono);
}

/* Writing */
.writing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.writing-list li a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.writing-list li a:hover {
    border-bottom-color: #333;
}

.writing-title {
    font-weight: 500;
    color: var(--text-primary);
}

.writing-date {
    font-family: var(--font-mono);
    color: #555;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Footer / Contact */
.footer-section {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #1a1a1a;
}

.footer-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: #fff;
    color: #000;
    font-weight: 600;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    color: #000;
    /* Force black */
}

footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #444;
    margin-top: 2rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main>section,
header {
    animation: fadeIn 0.6s ease forwards;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}