/* GDPR Compliant Local Fonts */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 800;
    font-display: swap;
}

@font-face {
    font-family: 'Fira Code';
    src: url('/fonts/Fira_Code/FiraCode-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 600;
    font-display: swap;
}

:root {
    --color-primary: #064E3B;
    --color-secondary: #0F172A;
    --color-accent: #10B981;
    --color-bg: #020617;
    --color-terminal: #0F172A;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--color-bg);
    color: #F8FAFC;
    cursor: crosshair;
}

.mono {
    font-family: 'Fira Code', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1E293B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Control Module Header */
.control-module {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Flow Lines */
.flow-line {
    position: absolute;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.2) 50%, rgba(16, 185, 129, 0) 100%);
    width: 1px;
    z-index: 0;
    overflow: hidden;
}

.flow-pulse {
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 100px;
    background: linear-gradient(180deg, transparent, #10B981, transparent);
    animation: flowDown 3s infinite linear;
    opacity: 0;
}

.active .flow-pulse {
    opacity: 1;
}

@keyframes flowDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(1000px);
    }
}

/* Terminal Simulator */
.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Grip Aesthetics */
.grip-texture {
    background-image: radial-gradient(#1E293B 1px, transparent 1px);
    background-size: 20px 20px;
}

.grip-border {
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.grip-border:hover {
    border-color: var(--color-accent);
    background: rgba(16, 185, 129, 0.05);
}

/* Utilities */
.text-glow {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Article Prose Styling */
.article-prose {
    color: #E2E8F0;
    line-height: 1.8;
}

.article-prose h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    padding-bottom: 0.5rem;
}

.article-prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 1.5rem 0 0.75rem 0;
}

.article-prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #10B981;
    margin: 1.25rem 0 0.5rem 0;
}

.article-prose p {
    margin: 1rem 0;
}

.article-prose img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-prose a {
    color: #10B981;
    text-decoration: underline;
    transition: color 0.2s;
}

.article-prose a:hover {
    color: #34D399;
}

.article-prose ul,
.article-prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-prose li {
    margin: 0.5rem 0;
}

.article-prose code {
    background: rgba(16, 185, 129, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #10B981;
}

.article-prose pre {
    background: #020617;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-prose pre code {
    background: transparent;
    padding: 0;
}

.article-prose blockquote {
    border-left: 3px solid #10B981;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #94A3B8;
    font-style: italic;
}

/* Replacement for inline styles on project images */
.project-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
