:root {
    --bg-color: #0f0f0f;
    --card-bg: #161616;
    --text-main: #e8e8e8;
    --text-muted: #9a9a9a;
    --accent: #4ade80;
    --accent-soft: #86efac;
    --border: #2a2a2a;
    --border-hover: #3a3a3a;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --card-radius: 8px;
}

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

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

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

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

/* Icons */
svg {
    stroke-width: 1.5px;
    shape-rendering: geometricPrecision;
    stroke-linecap: round;
    /* Smoother ends */
    stroke-linejoin: round;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    margin-bottom: 60px;
}

.brand h1 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand .handle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.github-link svg {
    width: 16px;
    height: 16px;
}

.hero {
    margin-bottom: 100px;
}

.hero-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    max-width: 700px;
}

.hero-content .highlight {
    color: var(--accent-soft);
    background: linear-gradient(120deg, var(--accent), var(--accent-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
}

.section {
    margin-bottom: 100px;
}

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

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
}

.section-header .line {
    height: 1px;
    background-color: var(--border);
    flex: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.stats-card {
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--card-radius);
    background: var(--card-bg);
}

.stats-card h4 {
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-item {
    margin-bottom: 20px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 12px;
    font-family: var(--font-mono);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.tool-category h4 {
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 500;
}

.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background: var(--card-bg);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.project-card:hover {
    border-color: var(--accent);
    background: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-icon {
    margin-bottom: 16px;
    color: var(--accent-soft);
}

.project-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon svg {
    transform: scale(1.1);
}

.project-info h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.project-tags span {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.project-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: all 0.2s ease;
}

.project-card:hover .project-arrow {
    opacity: 1;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden;
    margin-bottom: 60px;
    min-height: 220px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.featured-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.featured-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    font-size: 0.85rem;
    color: var(--accent-soft);
    margin-bottom: 12px;
    font-weight: 500;
}

.featured-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.featured-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 360px;
}

.featured-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-tags span {
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--accent-soft);
    background: rgba(74, 222, 128, 0.1);
}

.featured-visual {
    background: linear-gradient(135deg, #0a0a0a, #141414);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.entity-logo-container {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 12px;
    background: rgba(12, 14, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.entity-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.pattern-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.view-all {
    text-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.btn-primary:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--accent);
    color: var(--accent-soft);
    transform: translateY(-2px);
}

.btn-primary svg {
    width: 16px;
    height: 16px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .about-grid,
    .projects-grid,
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-visual {
        min-height: 200px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}
