:root {
    --bg-color: #080808;
    --surface-color: #121212;
    --text-primary: #00cc00;
    --text-dim: #008800;
    --accent: #00e600;
    --error: #ff4040;
    --border: rgba(0, 204, 0, 0.3);
    
    --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

::selection {
    background: var(--text-primary);
    color: var(--bg-color);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
    /* optional subtle text shadow to emulate monitor glow */
    text-shadow: 0 0 2px rgba(0, 204, 0, 0.3);
}

/* CRT Scanline effect overlaid on screen */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.15;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    border-bottom: 1px dashed var(--border);
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.1rem;
    z-index: 100;
}

.language-switcher a, .language-switcher span {
    margin-left: 10px;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: bold;
}

.language-switcher span.active {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--accent);
}

.language-switcher a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

/* Branding */
.brand {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 0.95rem;
    color: var(--text-dim);
    z-index: 100;
    transition: all 0.3s ease;
    cursor: default;
}

.brand:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

@media (max-width: 550px) {
    .brand {
        top: 15px;
        left: 15px;
        font-size: 0.75rem;
    }
    .language-switcher {
        top: 15px;
        right: 15px;
        font-size: 0.95rem;
    }
}

/* Typography Headings */
h1, h2, h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.5);
}

h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 40px;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 15px;
}
p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
    text-decoration-style: solid;
}

/* Header/Hero specifics */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prompt {
    color: var(--text-dim);
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-top: 15px;
    margin-bottom: 30px;
}

.terminal-status {
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
}

.status-line {
    margin-bottom: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    box-shadow: 0 0 12px rgba(0, 204, 0, 0.3), inset 0 0 8px rgba(0, 204, 0, 0.1);
    text-shadow: 0 0 8px var(--text-primary);
    border-color: var(--text-primary);
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.projects-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .contact-wrapper { grid-template-columns: 1fr 1fr; gap: 40px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Containers (Cards) */
.content-box, .card, .terminal-box {
    background: var(--surface-color);
    border: 1px solid var(--border);
    padding: 24px;
}

.card {
    transition: border-color 0.3s, transform 0.2s;
}

.card:hover {
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

.terminal-box {
    border-left: 4px solid var(--text-primary);
}

.term-line {
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* Projects */
.project-card {
    background: var(--surface-color);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.project-img-placeholder {
    height: 200px;
    background: rgba(0, 204, 0, 0.05);
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px dashed var(--border);
    opacity: 0.8;
    filter: sepia(1) hue-rotate(80deg) saturate(2) contrast(1.1);
    transition: all 0.3s ease;
}

.project-card:hover .project-img {
    opacity: 1;
    filter: none;
}

.project-info {
    padding: 24px;
}

.inline-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--text-primary);
    box-shadow: inset 0 0 8px rgba(0, 204, 0, 0.2);
}

.form-status {
    margin-top: 20px;
    font-size: 0.9rem;
    min-height: 24px;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: var(--error); }

/* Blinking Cursor animation */
.blinking-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    padding-bottom: 40px;
    padding-top: 40px;
}

