/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #222;
    --text: #e0e0e0;
    --text-muted: #777;
    --accent: #4af;
    --accent-hover: #6cf;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 16px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/img/background.jpg") center / cover no-repeat;
    opacity: 0.07;
    z-index: -1;
}

/* === Navigation (3-column) === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 2.5rem;
    height: 60px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-logo {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

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

.nav-contact {
    justify-self: end;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-contact:hover {
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
}

/* === Mobile Menu === */
.mobile-menu {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.mobile-menu a:hover {
    color: var(--text);
}
/* === Main === */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* === Hero === */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10rem 0 6rem;
}

.hero-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 2px solid var(--border);
    background: var(--surface);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

#hero h1 .highlight {
    color: var(--accent);
}

.tagline {
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
    color: var(--text-muted);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === Sections === */
section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* === About === */
.about-intro {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.about-content strong {
    color: var(--text);
    font-weight: 600;
}

.about-content em {
    color: var(--text);
}

.about-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text);
    font-style: italic;
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.interest-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(68, 170, 255, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}

/* === Projects === */
#project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.project-card:hover {
    border-color: #333;
}

.project-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.project-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.project-card .tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(68, 170, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.project-card a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

/* === Contact === */
.contact-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    margin-bottom: 0.5rem;
}

.contact-links a {
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 640px) {
    nav {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        padding: 0 1rem;
        height: 50px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .nav-contact {
        display: none;
    }

    #hero {
        padding: 7rem 0 4rem;
    }

    #hero h1 {
        font-size: 1.6rem;
    }

    .hero-photo {
        width: 100px;
        height: 100px;
    }

    section {
        padding: 3rem 0;
    }

    #project-grid {
        grid-template-columns: 1fr;
    }
}
