/* Libruary — Dark, minimal, studio aesthetic */

:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #161616;
    --border: #222222;
    --border-hover: #333333;
    --text-primary: #e5e5e5;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #3b82f6;
    --accent-dim: #2563eb;
    --green: #22c55e;
    --yellow: #eab308;
    --purple: #a78bfa;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Nav */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

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

/* Hero */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Sections */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.15s;
}

.project-card:hover {
    border-color: var(--border-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.status {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.status-live {
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

.status-building {
    color: var(--yellow);
    background: rgba(234, 179, 8, 0.1);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-traction {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--green);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tech span {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

/* Hackathons */
.hackathons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hackathon-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.hackathon-item:last-child {
    border-bottom: none;
}

.hackathon-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.hackathon-name a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.15s;
}

.hackathon-name a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.hackathon-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hackathon-win {
    color: var(--green);
    font-weight: 500;
}

.hackathon-progress {
    color: var(--yellow);
    font-weight: 500;
}

.demo-toggle {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.15s;
    font-family: var(--font-mono);
}

.demo-toggle:hover {
    color: var(--accent);
}

.hackathon-video {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    border-bottom: none;
}

.hackathon-video.expanded {
    max-height: 400px;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 1px solid var(--border);
}

.video-preview {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.video-preview:hover img {
    opacity: 0.55;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.video-preview:hover .play-btn {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.08);
}

.play-btn svg {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-left: 2px;
}

.video-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.video-preview.playing {
    cursor: default;
}

.video-preview.playing iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Open Source */
.oss-block p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.oss-block a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.oss-block a:hover {
    border-bottom-color: var(--accent);
}

.oss-stats {
    display: flex;
    gap: 3rem;
}

.oss-stat {
    display: flex;
    flex-direction: column;
}

.oss-number {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: -0.03em;
}

.oss-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Stack */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stack-category h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.stack-category p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Consulting */
.consulting-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.consulting-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.consulting-area {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.consulting-area h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.consulting-area p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact */
.contact-block {
    display: flex;
    gap: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}

.contact-link:hover {
    border-color: var(--text-muted);
    background: var(--bg-elevated);
}

/* Footer */
.footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consulting-areas {
        grid-template-columns: 1fr;
    }

    .hackathon-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .oss-stats {
        gap: 2rem;
    }

    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }

    .oss-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-block {
        flex-direction: column;
    }

    .contact-link {
        justify-content: center;
    }
}
