:root {
    --bg: #0A0A0A;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --header: #FFFFFF;
    --text: #E0E0E0;
    --accent: #F46623;
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.mono { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: -0.02em; }
.section-padding { padding-top: 8rem; padding-bottom: 8rem; }

/* Background pattern */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

/* Nav */
.nav-blur {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.7);
}
.nav-content {
    height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 1rem; }
.tns-logo { font-weight: 800; color: var(--accent); letter-spacing: 2px; }
.mono-tag { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.5; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; margin-left: 2rem; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 10rem 0 6rem; }
.badge { 
    display: inline-block; padding: 0.4rem 1rem; border: 1px solid var(--accent); 
    color: var(--accent); font-family: var(--font-mono); font-size: 0.7rem; 
    border-radius: 20px; margin-bottom: 2rem;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--header); font-weight: 600; line-height: 1.1; margin-bottom: 2rem; }
.hero-sub { max-width: 600px; margin: 0 auto 3rem; font-size: 1.2rem; opacity: 0.8; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 4rem; }
.btn { 
    padding: 0.8rem 2rem; text-decoration: none; border-radius: 4px; 
    font-weight: 600; font-size: 0.95rem; transition: 0.3s; 
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(244, 102, 35, 0.2); }
.btn-secondary { border: 1px solid var(--border); color: var(--header); }
.hero-status { opacity: 0.4; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.status-dot { width: 8px; height: 8px; background: #00FF66; border-radius: 50%; box-shadow: 0 0 10px #00FF66; }

/* Bento Grid */
.mono-label { color: var(--accent); font-family: var(--font-mono); font-size: 0.9rem; margin-bottom: 2rem; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.bento-card:hover { border-color: var(--accent); }

/* Patterns (0.04 Opacity SVG Patterns) */
.card-pattern-1 { background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.83 3.83-1.414 1.414L46.143 0h2.828zM11.03 0L7.2 3.83 8.614 5.244 13.857 0H11.03z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.card-pattern-2 { background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E"); }
.card-pattern-3 { background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm10 17a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm20 0a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM10 37a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm20 0a7 7 0 1 0 0-14 7 7 0 0 0 0 14z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.card-pattern-4 { background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0zM0 26h52v-2H0v2zm52-26h-2v24h2V0zM2 0h2v24H2V0zm50 26v-2H0v2h52z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }

.bento-card h3 { color: var(--header); margin-bottom: 1rem; }
.bento-card p { opacity: 0.7; font-size: 0.95rem; margin-bottom: 2rem; }
.tech-note { border-top: 1px solid var(--border); padding-top: 1rem; color: var(--accent); font-size: 0.75rem; line-height: 1.8; }

/* Architecture Section */
.arch-box {
    background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}
.arch-text h3 { font-size: 2rem; color: var(--header); margin-bottom: 1.5rem; }
.arch-list { list-style: none; margin-top: 2rem; }
.arch-list li { margin-bottom: 0.8rem; border-left: 2px solid var(--accent); padding-left: 1rem; }
.arch-list span { color: var(--accent); margin-right: 0.5rem; }
.arch-svg { max-width: 400px; opacity: 0.8; }

/* Contact Terminal */
.contact-terminal {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}
.terminal-header {
    background: #1A1A1A;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.terminal-header .dot { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.terminal-title { margin-left: 1rem; font-size: 0.75rem; opacity: 0.5; }
.terminal-form { padding: 2.5rem; }
.input-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.input-group label { margin-bottom: 0.5rem; color: var(--accent); }
.input-group input, .input-group select, .input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--header);
    padding: 0.5rem 0;
    font-family: var(--font-mono);
    outline: none;
}
.input-group input:focus { border-color: var(--accent); }
.terminal-btn { margin-top: 2rem; width: 100%; cursor: pointer; border: none; }

/* Footer */
.footer { 
    padding: 4rem 0; 
    border-top: 1px solid var(--border);
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    font-size: 0.75rem; 
    color: var(--text);
    transition: opacity 0.3s ease;

}

.footer-bottom:hover {
    opacity: 0.9;
}
/* Projects Grid Showcase */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Individual Tombstone Cards */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent);
    background: rgba(244, 102, 35, 0.02);
    transform: translateY(-2px);
}

/* Card Header Meta-data */
.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.project-tag {
    color: var(--accent);
}

.project-status {
    opacity: 0.5;
}

.project-card h3 {
    color: var(--header);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* Bullet points within cards */
.project-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    font-size: 0.8rem;
    line-height: 1.8;
}

.project-list li {
    opacity: 0.7;
    border: none;
    padding: 0;
    margin-bottom: 4px;
}

/* Links & Confidentiality labels */
.project-link {
    display: block;
    margin-top: auto;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}