/* --- FONTS & VARIABLES --- */
@font-face {
    font-family: 'Ndot';
    src: url('../assets/NType82-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Ndot Mono';
    src: url('../assets/NType82Mono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --accent: #ffffff;
    --border: #333333;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Ndot', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

#stars-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

nav,
header,
section,
footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3, .logo, .subtitle, .tag {
    font-family: 'Ndot Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

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

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

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* --- SECTIONS & LAYOUT --- */
section {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

/* --- ABOUT SECTION --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.bio-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease;
}

.bio-image img:hover {
    filter: grayscale(0%) contrast(1);
}

.bio-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

.project-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* --- BUTTONS --- */
.btn, .btn-large {
    display: inline-block;
    color: var(--bg-color);
    background: var(--accent);
    text-decoration: none;
    font-family: 'Ndot Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn {
    padding: 0.8rem 1.5rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.btn:hover, .btn-large:hover {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.tag {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'Ndot Mono', monospace;
    font-size: 0.8rem;
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
