:root {
    --bg-color: #030303;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --accent-purple: #7939a0; 
    --accent-purple-dim: #1a0b2e; 
    --border-color: #222222;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    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)'/%3E%3C/svg%3E");
}

header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--text-main);
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
    border-bottom: none;
}

#hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 0;
}

.hero-content {
    flex: 1;
}

.hero-image {
    width: 300px;
    height: auto;
    opacity: 0;
    margin-left: 2rem;
    border-radius: 4px;
    animation: fadeInRight 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 0.8;
        transform: translateX(0);
    }
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 800px;
    background: linear-gradient(to bottom right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    font-weight: 400;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.mono-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1rem;
}

.content-box {
    margin-top: 1rem;
}

.content-box p, 
.content-box li {
    font-size: 1.05rem;
    max-width: 700px;
    color: #ccc;
    margin-bottom: 1.2rem;
}

.content-box ul,
.content-box ol {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-box li {
    margin-bottom: 0.3rem;
}

.content-box h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.content-box h3 {
    font-size: 1.25rem;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.content-box pre {
    background: #0d0d0d;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.content-box code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Ensure code blocks don't get double styling if they contain <code> tags */
.content-box pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
    color: inherit;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header .meta {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #080808;
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border-radius: 12px;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--accent-purple-dim);
    color: #c084fc;
    border-radius: 4px;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.link-arrow {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-purple);
    align-self: flex-start;
    padding-bottom: 0.2rem;
    transition: opacity 0.2s ease;
}

.link-arrow:hover {
    opacity: 0.8;
}

footer {
    padding: 4rem 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #hero { flex-direction: column-reverse; align-items: flex-start; padding: 4rem 0; }
    .hero-image { display: none; }
    h1 { font-size: 2.5rem; }
    header { padding: 1.5rem; }
    section { padding: 3rem 0; }
}
