/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: rgb(214, 221, 168);
    --accent-dim: rgba(214, 221, 168, 0.15);
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #222;
    --text: #e0e0e0;
    --muted: #666;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
}

body {
    min-height: 100vh;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Background Grid ── */
.bg-grid {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(214, 221, 168, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 221, 168, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* ── Nav ── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
}
.nav-brand:hover { text-decoration: none; }

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

.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.4rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    border-radius: 4px;
    line-height: 1;
}

/* ── Hero ── */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #fff;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 3rem;
}

.line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 1.5rem auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; width: 60px; }
    50% { opacity: 1; width: 120px; }
}

/* ── Cards ── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s;
    color: var(--text);
}
.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}
.card h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.card p {
    color: var(--muted);
    font-size: 0.9rem;
}
.card .card-arrow {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ── Page Content ── */
.page-content {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-content h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-content .subtitle {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.page-content h2 {
    font-size: 1.3rem;
    color: #fff;
    margin: 2.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.page-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.page-content p {
    margin-bottom: 1rem;
    color: #ccc;
}

/* ── Review Cards ── */
.review-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.review-card h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-family: monospace;
}
.review-card .rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}
.review-card .rating-score {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
}
.rating-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}
.rating-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.6s ease;
}
.review-card .tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.tag {
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Portfolio ── */
.project {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.project h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.3rem;
}
.project .project-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.project ul {
    list-style: none;
    padding: 0;
}
.project ul li {
    color: #ccc;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}
.project ul li::before {
    content: "\2023 ";
    color: var(--accent);
    margin-right: 0.5rem;
}
.project .project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.project .project-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.skill-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
}
.skill-item strong {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.skill-item p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
}

/* ── Blog ── */
.blog-post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--text);
    transition: border-color 0.2s;
}
.blog-post:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.blog-post .date {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.blog-post h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0.3rem 0 0.5rem;
}
.blog-post p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}
.blog-post .read-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--accent);
    font-size: 0.85rem;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
footer .footer-links {
    margin-bottom: 0.5rem;
}
footer .footer-links a {
    color: var(--muted);
    margin: 0 0.8rem;
    transition: color 0.2s;
}
footer .footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ── About ── */
.about-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.about-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .about-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
    }
    .nav-links.open { display: flex; }
    .cards { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
}
