:root {
    --bg-color: #0a0b10;
    --bg-panel: #111217;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-amber: #ffb703;
    --accent-cyan: #00f5d4;
    --border-color: rgba(255, 255, 255, 0.1);
    --grid-line: rgba(255, 255, 255, 0.03);

    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 0%, var(--accent-cyan) 50%, transparent 100%);
    opacity: 0.1;
    background-size: 100% 200%;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        background-position: 0% -100%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    border-left: 4px solid var(--accent-amber);
    padding-left: 1rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    color: var(--accent-cyan);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    align-items: start;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Industrial Cards */
.glass-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    /* Sharp corners */
    padding: 2rem;
    position: relative;
    transition: all 0.2s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glass-card h3::after {
    content: '↗';
    font-family: var(--font-sans);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.glass-card:hover h3::after {
    opacity: 1;
    transform: translateX(0);
}

.glass-card img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    filter: grayscale(20%) contrast(110%);
    transition: filter 0.3s ease;
}

.glass-card:hover img {
    filter: grayscale(0%) contrast(100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 11, 16, 0.95);
    border-bottom: 1px solid var(--accent-amber);
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--accent-amber);
    padding: 0 2rem;
    color: #000;
}

.logo-img {
    height: 32px;
    width: auto;
    /* filter: brightness(0); */
    /* Make logo black */
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--accent-amber);
}

.btn-primary {
    background: var(--accent-amber);
    color: #000;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-amber);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
}



.hero-content {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.hero-visual {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-cyan);
    border-left: 2px solid var(--accent-cyan);
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-cyan);
    border-right: 2px solid var(--accent-cyan);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: #000;
    border-top: 1px solid var(--border-color);
}

footer h4 {
    color: var(--accent-amber);
    font-size: 1rem;
}

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

/* 404 Specific */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.glitch-text {
    font-family: var(--font-mono);
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent-amber);
    text-shadow: 4px 4px 0px var(--accent-cyan);
}