:root {
    --bg-color: #050505;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.2);
    --card-bg: #111111;
    --border: #222222;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

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

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

/* Main Layout */
main {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: var(--border);
    margin-left: 2rem;
}

.section-title span {
    color: var(--text-main);
}

.section-title {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.2rem;
}

.section-title span {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 800;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
}

.pre-title {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    display: block;
    position: relative;
    z-index: 200;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -1px;
}

.subtitle {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn.primary {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

.btn.secondary {
    color: var(--text-main);
    border: 1px solid var(--border);
    margin-left: 1rem;
}

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

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

/* Persona Scrollytelling Section */
.persona-container {
    height: 300vh; /* Allow plenty of scroll space for timeline */
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.persona-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.persona-text-container {
    position: absolute;
    top: 25%;
    left: 10%;
    z-index: 20;
}

.persona-title {
    font-size: clamp(2rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.persona-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-family: var(--font-mono);
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.persona-visuals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind the dots canvas! */
}

/* Blending overlay to merge seamlessly into black background */
.persona-visuals::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 40%, var(--bg-color) 90%);
    pointer-events: none;
    z-index: 2;
}

.vis-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.parallax-img {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
}

/* We will have a background, midground, and foreground */
.layer-bg .parallax-img {
    filter: brightness(0.3) blur(4px);
}
.layer-mid .parallax-img {
    filter: brightness(0.7);
    mask-image: linear-gradient(to bottom, transparent 20%, black 40%, black 70%, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 40%, black 70%, transparent 90%);
}
.layer-fg .parallax-img {
    filter: brightness(1.1) drop-shadow(0 -10px 20px rgba(0,0,0,0.8));
    mask-image: linear-gradient(to bottom, transparent 60%, black 80%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 60%, black 80%, black 100%);
}


/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.skill-category p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
}

.achievements {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.achievements h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.achievements ul {
    list-style: none;
}

.achievements li {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

/* Projects */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-overline {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.project-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.project-description ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.project-description li {
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* OSS Grid */
.oss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.oss-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.oss-card:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.oss-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.oss-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

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

footer p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.socials {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.socials a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 1rem;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}

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

.copyright {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    nav {
        padding: 1rem 2rem;
    }
    .links {
        display: none;
    }
}

