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

:root {
    --bg: #0a0a0b;
    --bg-dark: #131317;
    --bg-card: #131317;
    --text: #FFFFFF;
    --text-muted: #FFFFFF;
    --accent: #9b8fd4;
    --border: #332d52;
    --font: 'Courier New', Courier, monospace;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
}

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

/* HEADER */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.nav__logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
}

.nav__logo span { color: var(--accent); }

.nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

/* OVERLAY MENU */
.nav__overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: rgba(10,10,10,0.98);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
    opacity: 1;
    pointer-events: none;
}

.nav__overlay.active {
    transform: translateX(0);
    pointer-events: all;
}

.nav__close {
    position: absolute;
    top: 24px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.nav__menu {
    list-style: none;
    text-align: left;
}

.nav__menu li { margin: 20px 0; }

.nav__menu a {
    font-size: 20px;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav__menu a:hover { color: var(--accent); }
.nav__menu li { margin: 24px 0; }

.nav__menu a {
    font-size: 32px;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    background: var(--bg-dark);
    background-image: url('/images/hero.gif');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(204,41,54,0.03) 2px, rgba(204,41,54,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,0.015) 20px, rgba(255,255,255,0.015) 21px);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 0;
}


.hero__content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero__tag {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.hero__title {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 6px;
}

.hero__title span { color: var(--accent); }

.hero__sub {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-top: 12px;
}

/* ABOUT */
.about {
    background: var(--bg-dark);
    padding: 80px 40px;
    border-top: 1px solid var(--border);
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.about__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
}

.about__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.about__text h2 {
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.about__text p {
    color: var(--text-muted);
    line-height: 1.9;
}

/* LATEST POSTS */
.latest-posts {
    background: var(--bg);
    padding: 80px 40px;
    border-top: 1px solid var(--border);
}

.latest-posts__inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.latest-posts__label {
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.latest-posts__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: color 0.2s;
}

.post-item:hover .post-item__title {
    color: var(--accent);
}

.post-item__date {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    flex-shrink: 0;
}

.post-item__title {
    font-size: 14px;
    color: var(--text);
    transition: color 0.2s;
}

.post-item__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* PROJECTS */
.projects {
    background: var(--bg-dark);
    padding: 80px 40px;
}

.projects__inner { max-width: 1100px; margin: 0 auto; }

.projects__label {
    font-size: 18px;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    color: var(--text);
    transition: border-color 0.2s;
}

.project-card:hover { border-color: var(--accent); color: var(--text); }

.project-card__img {
    height: 160px;
    background-color: #222;
    background-size: cover;
    background-position: center;
}

.project-card__img--placeholder {
    background: repeating-linear-gradient(
        45deg,
        #1e1e1e,
        #1e1e1e 4px,
        #222 4px,
        #222 8px
    );
}

.project-card__info {
    padding: 16px;
}

.project-card__info h3 {
    font-size: 13px;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* TAGS */
.tag {
    display: inline-block;
    font-size: 10px;
    color: var(--accent);
    border: 1px solid rgba(204,41,54,0.3);
    padding: 2px 8px;
    letter-spacing: 1px;
    margin-right: 4px;
    margin-top: 4px;
}

/* LIST PAGES */
.list {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 40px;
}

.list__title {
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 40px;
}

.list__item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.list__item a { color: var(--text); }
.list__item a:hover .list__item-title { color: var(--accent); }

.list__item-date {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.list__item-title {
    font-size: 16px;
    color: #fff;
    transition: color 0.2s;
}

/* SINGLE PAGES */
.single {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 40px;
}

.single__title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.single__meta {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.single__date {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.single__content h1,
.single__content h2,
.single__content h3 { color: #fff; margin: 32px 0 16px; }

.single__content p { color: var(--text-muted); margin-bottom: 16px; }

.single__content code {
    background: #111;
    color: var(--accent);
    padding: 2px 6px;
    font-family: var(--font);
}

.single__content pre {
    background: #111;
    border: 1px solid var(--border);
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
}

.single__content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

/* ABOUT PAGE */
.about-page {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 40px;
}

.about-page__title {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.about-page__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    margin: 0 auto 32px;
}

.about-page__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-page__content p {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 16px;
}


/* FOOTER */
.footer {
    padding: 32px 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}
