:root {
    --bg: #ffffff;
    --hero-bg: #fcfcfc;
    --text: #000000;
    --muted: #777777;
    --border: #ebebeb;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hero {
    height: 75vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--hero-bg);
    border-bottom: 1px solid var(--border);
}

.main-logo {
    width: 420px;
    max-width: 85%;
    height: auto;
}

.navbar {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: top 0.3s ease;
}

.navbar.visible { top: 0; }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-logo img { 
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Sections */
.section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 40px;
}

.section-header { 
    border-bottom: 1px solid var(--border); 
    margin-bottom: 50px; 
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.project-card {
    text-decoration: none;
    color: inherit;
    padding: 45px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    border-color: var(--text);
    transform: translateY(-4px);
    background: #fafafa;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-card h3 { font-size: 1.6rem; font-weight: 900; }

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 700;
}

.project-card p { color: var(--muted); line-height: 1.6; }

.contact-section {
    text-align: center;
    padding: 150px 40px;
}

.contact-box h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.email-link {
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 2px solid var(--text);
    padding-bottom: 5px;
}

.email-link:hover { opacity: 0.5; }

footer {
    padding: 50px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .main-logo { width: 300px; }
    .email-link { font-size: 1.1rem; }
}

.navbar.always-on {
    top: 0 !important;
    position: sticky;
    background: rgba(255, 255, 255, 1);
}

.subpage {
    background-color: #ffffff;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 120px 40px;
    min-height: 80vh;
}

.content-header {
    margin-bottom: 60px;
    padding-top: 40px;
}

.content-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 10px 0;
}

.last-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.prose p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}

.prose h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 15px 0;
}

.nav-logo a {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .content-header h1 {
        font-size: 2.2rem;
    }
    .legal-container {
        padding: 40px 25px;
    }
}

.error-page {
    background-color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.error-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.big-404 {
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -5px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-content p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.back-home {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--text);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.back-home:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .big-404 {
        letter-spacing: -2px;
    }
}