/* --- Core Variables --- */
:root {
    --bs-body-bg: #0b1120; /* Darker, deeper blue */
    --bs-body-color: #94a3b8;
    --primary-color: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --secondary-color: #64748b;
    --card-bg: rgba(30, 41, 59, 0.4); /* Transparent for glassmorphism */
    --border-color: rgba(255, 255, 255, 0.08);
}

/* --- Base Typography & Reset --- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- Background Noise Texture --- */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Utilities --- */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-darker { background-color: #020617; }
.tracking-tight { letter-spacing: -0.03em; }
.tracking-wider { letter-spacing: 0.1em; }
.font-monospace { font-family: 'JetBrains Mono', 'Fira Code', monospace !important; }

/* --- Navbar --- */
.navbar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 0;
    background: transparent;
}

.navbar-scrolled {
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-link {
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* --- Buttons --- */
.btn {
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-color: var(--border-color);
    color: #cbd5e1;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.05);
    border-color: #fff;
    color: #fff;
}

/* --- Cards & Glassmorphism --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card:hover .icon-box {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* --- Terminal Component --- */
.terminal-window {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    overflow: hidden;
}

.terminal-header {
    background: #1e293b;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #334155;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #22c55e; }

.terminal-body {
    padding: 15px;
    color: #94a3b8;
    height: 220px;
    overflow-y: hidden;
}

.cmd-line { display: block; margin-bottom: 4px; }
.cmd-prompt { color: #22c55e; margin-right: 8px; }
.cmd-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #94a3b8;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink { 50% { opacity: 0; } }

/* --- Forms --- */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.9rem;
    padding: 0.8rem;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    color: #fff;
}

.form-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #64748b;
    font-weight: 600;
}