:root {
    /* Color Palette */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-border: #1a1a1a;
    --color-accent: #00cc00; /* slightly darker green for better contrast on white */
    --color-accent-hover: #00ff00;
    --color-grid: #e0e6ed; /* Light blue-gray for notebook effect */
    
    /* Spacing & Layout */
    --spacing-unit: 1rem;
    --card-padding: 2rem;
    --border-radius: 0px; /* Brutalist/Technical look */
    --border-width: 2px;
}

/* === Reset & Typography === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    /* Math Notebook Grid Pattern */
    background-image: 
        linear-gradient(var(--color-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center top;
    
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* === Navigation === */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: var(--border-width) solid var(--color-border);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* === Main Layout (CSS Grid) === */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 var(--spacing-unit);
    width: 100%;
}

/* === Card Components === */
.card {
    background: rgba(255, 255, 255, 0.9); /* Slight transparency */
    border: var(--border-width) solid var(--color-border);
    padding: var(--card-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(2px);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #555;
    border-bottom: 2px dashed #eee;
    padding-bottom: 0.5rem;
}

/* === Specific Grid Areas === */
.hero-card {
    grid-column: span 12;
    min-height: 300px;
    justify-content: center;
}

.bio-card {
    grid-column: span 8;
}

.social-card {
    grid-column: span 4;
}

/* === Typography & Elements === */
.headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
    max-width: 800px;
}

.highlight {
    background: linear-gradient(180deg, transparent 65%, var(--color-accent-hover) 65%);
    padding: 0 5px;
}

.subtitle {
    font-size: 1.1rem;
    color: #444;
    max-width: 600px;
}

.tag {
    background: var(--color-text);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* === Profile / Bio Styles === */
.bio-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.focus-item h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.focus-item ul {
    list-style: none;
    font-size: 0.9rem;
}

.focus-item li {
    margin-bottom: 0.4rem;
}

.ambition-box {
    background: #f9f9f9;
    border-left: 4px solid var(--color-accent);
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.tech-stack {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.stack-category span:first-child {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    margin-bottom: 0.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.85rem;
    font-weight: 600;
    background: #f4f4f4;
    padding: 2px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* === Buttons & Interactions === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: var(--border-width) solid var(--color-border);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-text);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    width: 100%;
}

.btn-outline:hover {
    background: var(--color-grid);
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* === Footer === */
.site-footer {
    margin-top: auto;
    border-top: var(--border-width) solid var(--color-border);
    padding: 2rem;
    text-align: center;
    background: white;
    font-size: 0.9rem;
    color: #666;
}

/* === Responsive Breakpoints === */
@media (max-width: 900px) {
    .bio-card, .social-card {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .headline {
        font-size: 2.5rem;
    }
    
    .grid-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none; 
    }
}