/* =====================================================
   EDEN BLOCK — HACKER TERMINAL STYLE
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --bg: #010b07;
    --surface: #030f09;
    --green: #00ff66;
    --green-dim: #00cc44;
    --green-dark: #004422;
    --cyan: #00e5ff;
    --pink: #ff2a6d;
    --text: #c8ffd8;
    --text-dim: #4d8c62;
    --border: rgba(0, 255, 102, 0.12);
    --border-bright: rgba(0, 255, 102, 0.35);
    --font: 'JetBrains Mono', 'Share Tech Mono', monospace;
    --glow-sm: 0 0 8px rgba(0, 255, 102, 0.4);
    --glow-md: 0 0 16px rgba(0, 255, 102, 0.5), 0 0 40px rgba(0, 255, 102, 0.2);
    --glow-lg: 0 0 24px rgba(0, 255, 102, 0.6), 0 0 60px rgba(0, 255, 102, 0.3);
}

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

html,
body {
    height: 100%;
}

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

/* ---- MATRIX CANVAS ---- */
#matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

/* ---- SCANLINES ---- */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px);
}

/* ---- VIGNETTE ---- */
.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
}

/* ---- BOOT SCREEN ---- */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.boot-content {
    width: 90%;
    max-width: 640px;
    padding: 2rem;
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    box-shadow: var(--glow-md);
}

.boot-line {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 2;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.boot-line.visible {
    opacity: 1;
    transform: none;
}

.boot-line .ok {
    color: var(--green);
    text-shadow: var(--glow-sm);
}

#boot-line-6 {
    color: var(--green);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: var(--glow-md);
    animation: blink-text 0.7s step-end infinite;
}

@keyframes blink-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ---- SITE CONTENT ---- */
#site-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#site-content.hidden {
    pointer-events: none;
}

/* ---- HEADER ---- */
header {
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(1, 11, 7, 0.7);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(0, 255, 102, 0.3));
    transition: filter 0.25s;
}

.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(0, 255, 102, 0.6));
}

.logo .prompt {
    color: var(--green-dim);
    text-shadow: var(--glow-sm);
}

.logo-text {
    color: var(--text);
    transition: transform 0.1s, text-shadow 0.1s;
}

.logo-text .accent {
    color: var(--green);
    text-shadow: var(--glow-sm);
}

.cursor-blink {
    color: var(--green);
    text-shadow: var(--glow-sm);
    animation: blink-text 1s step-end infinite;
    margin-left: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sys-time {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.contact-btn {
    text-decoration: none;
    color: var(--green);
    font-size: 0.8rem;
    border: 1px solid var(--border-bright);
    padding: 0.45rem 1rem;
    border-radius: 2px;
    background: rgba(0, 255, 102, 0.05);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    letter-spacing: 0.03em;
}

.contact-btn:hover {
    background: rgba(0, 255, 102, 0.1);
    box-shadow: var(--glow-sm);
}

.contact-btn .btn-prefix {
    color: var(--text-dim);
    margin-right: 0.3em;
}

/* ---- MAIN LAYOUT ---- */
main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 5%;
    display: flex;
    flex-direction: column;
    gap: 9rem;
}

/* ---- HERO / TERMINAL WINDOW ---- */
.terminal-window {
    border: 1px solid var(--border-bright);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--glow-md);
    background: rgba(2, 15, 9, 0.85);
    backdrop-filter: blur(6px);
    animation: fadeSlideUp 0.7s ease both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 255, 102, 0.04);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
    box-shadow: 0 0 6px rgba(39, 201, 63, 0.7);
}

.terminal-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    flex: 1;
    text-align: center;
}

.terminal-body {
    padding: 2rem 2.5rem;
    min-height: 320px;
}

.terminal-output .prompt-line {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.prompt-line .user {
    color: var(--green);
    text-shadow: var(--glow-sm);
}

.prompt-line .dir {
    color: var(--cyan);
}

.prompt-line .cmd {
    color: var(--text);
}

.cursor-inline {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    background: var(--green);
    margin-left: 2px;
    vertical-align: text-bottom;
    box-shadow: var(--glow-sm);
    animation: blink-text 0.8s step-end infinite;
}

.result-block {
    animation: fadeSlideUp 0.5s ease both;
}

.result-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.result-text {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    font-weight: 300;
}

.result-highlight {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

.accent-glow {
    color: var(--green);
    text-shadow: var(--glow-lg);
}

.accent-glow-2 {
    color: var(--cyan);
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.6), 0 0 60px rgba(0, 229, 255, 0.3);
}

.op {
    color: var(--text-dim);
}

/* ---- STATS GRID ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.stat {
    padding: 1rem;
    background: rgba(0, 255, 102, 0.03);
    border-right: 1px solid var(--border);
    transition: background 0.2s;
}

.stat:last-child {
    border-right: none;
}

.stat:hover {
    background: rgba(0, 255, 102, 0.07);
}

.stat-val {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--green);
    text-shadow: var(--glow-sm);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- SECTION HEADERS ---- */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.section-num {
    font-size: 0.75rem;
    color: var(--green);
    text-shadow: var(--glow-sm);
    font-weight: 600;
}

.section-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border-bright);
}

/* ---- ABOUT CARDS ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    background: rgba(18, 20, 19, 0.8);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    animation: fadeSlideUp 0.6s ease both;
}

.about-card:hover {
    border-color: var(--border-bright);
    background: rgba(18, 20, 19, 0.95);
    box-shadow: var(--glow-sm);
}

.card-tag {
    font-size: 0.65rem;
    color: var(--green);
    text-shadow: var(--glow-sm);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.about-card p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.75;
    max-width: 100%;
}

.highlight {
    color: var(--text);
    font-weight: 600;
}

/* ---- FOCUS ITEMS ---- */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.focus-item {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.75rem;
    background: rgba(18, 20, 19, 0.8);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    animation: fadeSlideUp 0.6s ease both;
}

.focus-item:hover {
    border-color: var(--border-bright);
    background: rgba(18, 20, 19, 0.95);
    box-shadow: var(--glow-sm);
}

.focus-icon {
    font-size: 1.4rem;
    color: var(--green);
    text-shadow: var(--glow-sm);
    margin-bottom: 1rem;
    animation: spin-hex 12s linear infinite;
    display: inline-block;
}

@keyframes spin-hex {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.focus-name {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.focus-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.focus-bar {
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.focus-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-dark), var(--green));
    box-shadow: 0 0 8px var(--green);
    border-radius: 2px;
    transform-origin: left;
    animation: bar-grow 1.4s ease-out both;
}

@keyframes bar-grow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ---- CONTACT ---- */
.cta-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cta-text {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    max-width: 600px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--green);
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    width: fit-content;
    padding: 1rem 2rem;
    border: 1px solid var(--border-bright);
    border-radius: 3px;
    background: rgba(0, 255, 102, 0.04);
    transition: background 0.25s, box-shadow 0.25s;
    overflow: hidden;
    letter-spacing: 0.03em;
}

.cta-btn:hover {
    background: rgba(0, 255, 102, 0.1);
    box-shadow: var(--glow-md);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 102, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.cta-btn:hover .btn-glow {
    opacity: 1;
}

/* ---- GLITCH EFFECT ---- */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.7;
}

.glitch::before {
    animation: glitch-1 4s infinite;
    color: var(--cyan);
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

.glitch::after {
    animation: glitch-2 4s infinite;
    color: var(--pink);
    clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
}

@keyframes glitch-1 {

    0%,
    95% {
        transform: none;
        opacity: 0;
    }

    96% {
        transform: translateX(-3px);
        opacity: 0.6;
    }

    98% {
        transform: translateX(3px);
        opacity: 0.6;
    }

    100% {
        transform: none;
        opacity: 0;
    }
}

@keyframes glitch-2 {

    0%,
    96% {
        transform: none;
        opacity: 0;
    }

    97% {
        transform: translateX(3px);
        opacity: 0.6;
    }

    99% {
        transform: translateX(-2px);
        opacity: 0.6;
    }

    100% {
        transform: none;
        opacity: 0;
    }
}

/* ---- FOOTER ---- */
footer {
    padding: 1.5rem 5%;
    border-top: 1px solid var(--border);
    background: rgba(1, 7, 4, 0.6);
    backdrop-filter: blur(6px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

.footer-hash {
    font-size: 0.65rem;
    color: var(--green-dark);
    letter-spacing: 0.05em;
}

/* ---- HIDDEN ---- */
.hidden {
    display: none !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {

    .about-grid,
    .focus-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(3) {
        border-right: 1px solid var(--border);
    }

    .terminal-body {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .sys-time {
        display: none;
    }

    main {
        gap: 5rem;
        padding: 3rem 5%;
    }

    .result-highlight {
        font-size: 1.8rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--green-dark);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-dim);
}