/* OP-TECH Modern Cybernetic Stylesheet */
:root {
    --bg-dark: #080d16;
    --bg-card: #0d1525;
    --bg-sec: #131e33;
    --tech-cyan: #00f0ff;
    --tech-emerald: #10b981;
    --border: #1d3356;
    --txt-main: #f1f5f9;
    --txt-muted: #94a3b8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--txt-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0,240,255,0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(16,185,129,0.04) 0%, transparent 40%);
}

/* Header & Navigation */
header {
    border-bottom: 2px solid var(--border);
    background: rgba(13, 21, 37, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--tech-cyan);
    text-shadow: 0 0 10px rgba(0,240,255,0.5);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo::before {
    content: "◆";
}

nav {
    display: flex;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: var(--txt-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--tech-cyan);
    background: rgba(0,240,255,0.08);
    border: 1px solid var(--tech-cyan);
    text-shadow: 0 0 8px rgba(0,240,255,0.3);
}

/* Container */
.container {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: radial-gradient(circle, rgba(0,240,255,0.05) 0%, transparent 70%);
    border-radius: 12px;
    border: 1px dashed var(--border);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--tech-cyan) 0%, var(--tech-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--txt-muted);
    max-width: 750px;
    margin: 0 auto 30px auto;
}

.badge {
    display: inline-block;
    background: rgba(16,185,129,0.12);
    color: var(--tech-emerald);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--tech-emerald);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.btn-docs {
    display: inline-block;
    border: 1px solid var(--tech-cyan);
    color: var(--tech-cyan);
    background: rgba(0,240,255,0.08);
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 0 15px rgba(0,240,255,0.15);
    transition: all 0.3s ease;
}

.btn-docs:hover {
    background: rgba(0,240,255,0.2);
    box-shadow: 0 0 25px rgba(0,240,255,0.35);
    transform: translateY(-2px);
}

/* Grid Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--tech-cyan);
    box-shadow: 0 5px 20px rgba(0,240,255,0.1);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--tech-cyan);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--txt-main);
    font-weight: bold;
}

.card p {
    color: var(--txt-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Interactive Interactive Terminal */
.terminal-block {
    background: #04080e;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin: 40px 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.term-header {
    background: var(--bg-card);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.term-dots {
    display: flex;
    gap: 8px;
}

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

.term-red { background: #ef4444; }
.term-yellow { background: #eab308; }
.term-green { background: #22c55e; }

.term-title {
    font-size: 0.75rem;
    color: var(--txt-muted);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: 'Courier New', Courier, monospace;
}

.term-body {
    padding: 20px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.88rem;
    height: 280px;
    overflow-y: auto;
    color: #22c55e;
}

.terminal-lines div {
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.term-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.user-prompt {
    color: var(--tech-cyan);
    font-weight: bold;
}

.term-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--txt-main);
    font-family: inherit;
    font-size: inherit;
    flex: 1;
}

.cmd { color: #facc15; font-weight: bold; }
.success { color: #22c55e; font-weight: bold; }
.info { color: #38bdf8; }
.error { color: #f87171; }

/* Subpage Layout System (Sidebar + Content) */
.layout-side {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .layout-side {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 90px;
}

.sidebar h4 {
    color: var(--tech-cyan);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    font-family: 'Courier New', Courier, monospace;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--txt-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: block;
}

.sidebar a:hover {
    color: var(--tech-cyan);
    padding-left: 5px;
}

.content-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}

.content-panel h2 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--tech-cyan);
    font-size: 1.8rem;
    font-weight: 800;
}

.content-panel h3 {
    margin: 30px 0 10px 0;
    color: var(--tech-emerald);
    font-size: 1.3rem;
}

.content-panel p {
    color: var(--txt-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-panel ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--txt-muted);
    font-size: 0.95rem;
}

.content-panel li {
    margin-bottom: 8px;
}

.code-block {
    background: #04080e;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #38bdf8;
    overflow-x: auto;
    margin: 15px 0;
    white-space: pre;
    line-height: 1.4;
}

/* Footer styling */
footer {
    border-top: 2px solid var(--border);
    background: #04080e;
    padding: 25px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--txt-muted);
    margin-top: auto;
    font-family: 'Courier New', Courier, monospace;
}

footer .cyan-text {
    color: var(--tech-cyan);
    font-weight: bold;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--tech-cyan);
}
