/* --- Global Variables & Resets --- */
:root {
    --bg-dark: #0a0c10;
    --bg-card: #12161f;
    --bg-header: rgba(10, 12, 16, 0.85);
    --accent: #38bdf8; /* Sharp Aero Blue */
    --accent-hover: #0ea5e9;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #222c3f;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
}

body {
    line-height: 1.6;
    padding-top: 80px; /* Offset for fixed header */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* --- Utility Typography & Buttons --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* --- Header Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

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

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

.main-nav .btn-nav {
    margin-left: 2rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.main-nav .btn-nav:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
}

/* --- Hero Section --- */
.hero-section {
    padding: 8rem 0 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    background-color: rgba(56, 189, 248, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.hero-actions > * {
    margin-right: 1rem;
}

/* --- Portfolio Tabs & Grid --- */
.portfolio-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tab-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent);
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

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

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.project-tagline {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.card-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* --- Tech Stack Section --- */
.tech-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.tech-category h4 {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

/* --- Footer & Contact --- */
.site-footer {
    padding: 6rem 0 4rem 0;
    background-color: #06080c;
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-lead {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.contact-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 4px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 4rem;
}

.contact-box .label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.email-link {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.2s ease;
}

.email-link:hover {
    color: var(--accent);
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    .site-header { height: 70px; }
    .main-nav { display: none; } /* Add mobile menu logic if needed */
    .hero-section h1 { font-size: 2.5rem; }
    .footer-meta { flex-direction: column; gap: 1rem; text-align: center; }
}
