/*
Theme Name: Cyber Portfolio
Author: Tango
Description: Dark mode aesthetic for a technical portfolio.
Version: 1.1
*/

:root {
    --bg-color: #0a0b0d;
    --surface-color: #16181d;
    --surface-color-alt: #1c1f26;
    --border-color: #2a2d33;
    --accent-color: #00ff9d;
    --accent-color-dim: #00b571;
    --text-main: #e0e0e0;
    --text-dim: #8a8f98;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-mono);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.8rem; margin-top: 0; }
h3 { font-size: 1.25rem; }

p {
    color: var(--text-main);
}

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

a:hover {
    text-decoration: underline;
}

ul, ol {
    color: var(--text-main);
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

/* ---------- Header ---------- */

.site-header {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-title:hover {
    text-decoration: none;
    opacity: 0.85;
}

.primary-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.primary-nav__list a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-main);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom-color: var(--accent-color);
}

/* ---------- Layout / Sections ---------- */

.site-main {
    display: block;
}

.page-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section {
    padding: 3.5rem 0;
}

.section--alt {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.eyebrow {
    font-family: var(--font-mono);
    color: var(--accent-color-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 4.5rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.hero__subtitle {
    color: var(--text-dim);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2rem;
}

/* ---------- Hero motion background ---------- */

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
    pointer-events: none;
}

.hero-visual__layer {
    position: absolute;
    inset: -5%;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

.hero-visual__grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(0, 255, 157, 0.07) 0, rgba(0, 255, 157, 0.07) 1px, transparent 1px, transparent 48px),
        repeating-linear-gradient(90deg, rgba(0, 255, 157, 0.07) 0, rgba(0, 255, 157, 0.07) 1px, transparent 1px, transparent 48px);
    mix-blend-mode: screen;
}

.hero-visual__scanline {
    position: absolute;
    left: 0;
    right: 0;
    top: -20%;
    height: 140px;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 157, 0.14), transparent);
    mix-blend-mode: screen;
}

.hero-visual__scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 13, 0.78);
}

@media (prefers-reduced-motion: no-preference) {
    .hero-visual__layer {
        animation: heroFade 21s infinite, heroZoom 24s ease-in-out infinite alternate;
    }
    .hero-visual__layer:nth-child(1) { animation-delay: 0s, 0s; }
    .hero-visual__layer:nth-child(2) { animation-delay: 7s, -6s; }
    .hero-visual__layer:nth-child(3) { animation-delay: 14s, -12s; }

    .hero-visual__grid {
        animation: heroGridDrift 40s linear infinite;
    }

    .hero-visual__scanline {
        animation: heroScan 7s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-visual__layer:first-child {
        opacity: 1;
    }
}

@keyframes heroFade {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    28%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes heroZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes heroGridDrift {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 48px 48px, -48px 48px; }
}

@keyframes heroScan {
    0%   { top: -20%; }
    100% { top: 110%; }
}

.hero .typing-cursor {
    display: inline-block;
    width: 0.5ch;
    margin-left: 2px;
    background: var(--accent-color);
    animation: heroCursorBlink 1s steps(1) infinite;
}

@keyframes heroCursorBlink {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero .typing-cursor {
        display: none;
    }
}

/* ---------- Cards / Grid ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.75rem;
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: var(--text-dim);
    margin-bottom: 0;
}

/* ---------- Equipment / spec lists ---------- */

.spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list .spec-label {
    color: var(--text-main);
    font-weight: 600;
}

.spec-list .spec-detail {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* ---------- Buttons ---------- */

.wp-block-button__link,
.button {
    display: inline-block;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.wp-block-button__link:hover,
.button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
}

.is-style-fill .wp-block-button__link {
    background: var(--accent-color);
    color: var(--bg-color);
    border: 1px solid var(--accent-color);
}

.is-style-fill .wp-block-button__link:hover {
    background: transparent;
    color: var(--accent-color);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
}

.site-footer__copy {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin: 0;
}

.site-footer__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.site-footer__list a {
    font-size: 0.8rem;
    color: var(--text-dim);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .site-header__inner { flex-direction: column; align-items: flex-start; }
}
