:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-terminal: #0d0d14;
    --green: #00ff41;
    --green-dim: #00cc33;
    --cyan: #00d4ff;
    --text: #e0e0e0;
    --text-dim: #6b7280;
    --border: #1e1e2e;

    /* System Font Stacks - Performance & Privacy */
    --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

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

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1000;
    opacity: 0.3;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
}

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

.terminal-subtitle {
    font-size: 0.7rem;
    color: var(--green-dim);
    font-weight: normal;
    text-transform: lowercase;
    opacity: 0;
    animation: fadeInSubtitle 2s ease-in 1s forwards;
    margin-top: 0.2rem;
}

@keyframes fadeInSubtitle {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-links a::before {
    content: './';
    color: var(--text-dim);
    opacity: 0.5;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.terminal-container {
    width: 100%;
    max-width: 800px;
}

.terminal {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 0 60px rgba(0, 255, 65, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.close { background: #ff5f57; }
.terminal-btn.minimize { background: #ffbd2e; }
.terminal-btn.maximize { background: #28ca42; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
    margin-right: auto;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    min-height: 400px;
}

.line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.line.visible {
    opacity: 1;
}

.prompt {
    color: var(--green);
}

.command {
    color: var(--text);
}

.output {
    color: var(--text-dim);
    padding-left: 1rem;
}

.output.highlight {
    color: var(--cyan);
}

.output.warning {
    color: #ffbd2e;
}

.output.error {
    color: #ff5f57;
}

.output.success {
    color: var(--green);
}

.progress-bar {
    color: var(--green);
    font-family: var(--font-mono);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background: var(--green);
    animation: blink 1s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-line {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.cta-btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--bg-primary);
    background: var(--green);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--green-dim);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    font-family: var(--font-mono);
    margin-bottom: 3rem;
}

.section-header .prompt {
    font-size: 0.85rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
}

.service-cmd {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.service-output {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* About Section */
.about {
    padding: 6rem 2rem;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    background: var(--bg-terminal);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

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

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-cmd {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dim);
    background: var(--bg-terminal);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: inline-block;
    text-align: left;
}

.contact-cmd a {
    color: var(--green);
    text-decoration: none;
    border-bottom: 1px dashed var(--green);
}

.contact-cmd a:hover {
    background: rgba(0, 255, 65, 0.1);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-text .prompt {
    color: var(--green);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .terminal-body {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }
}