/* ==========================================================================
   NEKO CONSULTING LLC — COMBINED STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & CSS VARIABLES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, p, ul, li, figure {
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --bg-primary: #0f172a;           /* Deep Slate Blue */
    --bg-secondary: #1e293b;         /* Card Slate */
    --text-main: #f8fafc;            /* Off-White */
    --text-muted: #94a3b8;           /* Cool Gray */
    --accent: #00bcff;               /* Tesla Spark Blue */
    --border: #334155;

    /* Typography */
    --font-heading: 'Courier New', Courier, monospace; 
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --size-base: 1rem;               /* 16px default browser base */
    --size-heading: 1.5rem;          /* 24px article headers */
    --size-title: 2.25rem;           /* 36px page title */

    /* Spacing */
    --std-mp: 1rem;
    --lr-mp: 2rem;
    --xl-mp: 4rem;
}

/* --------------------------------------------------------------------------
   2. GLOBAL LAYOUT & TYPOGRAPHY
   -------------------------------------------------------------------------- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

main {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    font-size: var(--size-title);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--std-mp);
    letter-spacing: -0.03em;
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    margin-top: var(--lr-mp);
    margin-bottom: var(--std-mp);
    padding: var(--std-mp) var(--lr-mp);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   3. NAVIGATION & HEADER COMPONENTS
   -------------------------------------------------------------------------- */
header {
    max-width: 1000px;
    margin: var(--std-mp) auto;
    padding: var(--std-mp);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: url("../ui-elements/gradient-shadow-curve.svg") no-repeat center center;
}

header > * {
    flex: 1; 
}

header h3 {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--size-heading);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.05em;
    text-align: left;
}

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

.brand-mark {
    height: 38px;
    width: auto;
}

.nav-container {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: var(--std-mp);
    margin-bottom: var(--std-mp);
}

.nav-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    padding: 0px 4px;
    border-width: 2px; 
    border-style: outset;
    border-radius: 4px;
    border-color: var(--border);
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--size-base);
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4), inset 0 0 4px rgba(0, 240, 255, 0.2);
}

/* --------------------------------------------------------------------------
   4. HERO & CARDS GRID
   -------------------------------------------------------------------------- */
.hero {
    max-width: 800px;
    margin-top: var(--lr-mp);
    margin-bottom: var(--std-mp);
}

.hero p {
    font-size: var(--size-base);
    color: var(--text-muted);
    margin-bottom: var(--lr-mp);
}

.services-head {
    margin-top: var(--lr-mp);
    margin-bottom: var(--std-mp);
    border-top: 2px solid var(--border);
    font-weight: 800;
    text-align: center;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.services-head h2 {
    margin-top: var(--lr-mp);
    margin-bottom: var(--std-mp);
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: var(--lr-mp);
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--xl-mp);
}

.card {
    background-color: var(--bg-secondary);
    border-width: 4px; 
    border-style: double;
    border-radius: 4px;
    border-color: var(--border);
    padding: var(--std-mp);
    transition: transform 0.2s ease;
    text-align: left;
    flex: 1 1 calc(50% - 2rem);
    min-width: 320px;
    max-width: 460px;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4), inset 0 0 4px rgba(0, 240, 255, 0.2);
}

.card h2 {
    margin-top: 0;
    margin-bottom: var(--std-mp);
    text-align: center;
    font-size: var(--size-heading);
    color: var(--accent);
}

.card p {
    color: var(--text-main);
    margin-bottom: 0;
}

.card .article-body {
    padding: 1rem 0 0 0;
    border-top: 1px dashed var(--border);
}

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

.service-package h1, 
.service-package h2, 
.service-package h3 {
    border-bottom: 1px solid var(--border);
    margin-top: 0;
    margin-bottom: var(--std-mp);
    text-align: center;
}

.service-package ul {
    list-style-position: inside;
    margin-left: var(--std-mp);
}

.service-package li {
    margin-bottom: var(--std-mp);
    color: var(--text-muted);
}

.package-deliverables {
    list-style-position: outside;
    padding-left: 1.25rem;
    margin-top: 1rem;
}

/* Tooltips */
.tooltip {
    position: relative;
    border-bottom: 1px dotted var(--accent);
    cursor: help;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-popup);
    position: absolute;
    left: 50%;
    bottom: 130%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* --------------------------------------------------------------------------
   5. EXPANDABLE DETAILS & ARTICLES
   -------------------------------------------------------------------------- */
.exec-sum {
    border-style: ridge;
    border-radius: 16px; 
    border-color: var(--accent);
    padding: var(--std-mp);
}

.article-wrapper {
    background-color: var(--bg-secondary);
    border-width: 2px; 
    border-style: outset;
    border-radius: 4px;
    border-color: var(--border);
    margin-bottom: var(--std-mp);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.article-wrapper:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4), inset 0 0 4px rgba(0, 240, 255, 0.2);
}

.article-header {
    padding: var(--std-mp) var(--std-mp);
    cursor: pointer;
    list-style: none;
}

.article-header::-webkit-details-marker {
    display: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.header-content h2 {
    margin-top: var(--std-mp);
    margin-bottom: var(--std-mp);
    font-size: var(--size-heading);
    color: var(--text-main);
}

.article-wrapper[open] .header-content h2 {
    color: var(--accent);
}

.article-body {
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid var(--border);
    padding-top: var(--std-mp);
    color: var(--text-muted);
}

.article-body p {
    margin-top: var(--std-mp);
}

.article-body p:first-of-type {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. DECORATIVE & GRAPHICAL STYLES
   -------------------------------------------------------------------------- */
.main-container {
    margin: 0.5rem auto;
    height: auto;
    width: 48%;
    max-width: 600px;
}

.clm {
    width: 100%;
    display: block;
}

.trace-bg {
    stroke: #252525;
    stroke-width: 1.8;
    fill: none;
}

.trace-flow {
    stroke-width: 1.8;
    fill: none;
    stroke-dasharray: 40 400;
    stroke-dashoffset: 438;
    filter: drop-shadow(0 0 6px currentColor);
    animation: flow 3s cubic-bezier(0.5, 0, 0.9, 1) infinite;
}

.blue2, .blue {
    stroke: var(--accent);
    color: var(--accent);
}

@keyframes flow {
    to {
        stroke-dashoffset: 0;
    }
}

.chip-body {
    rx: 20;
    ry: 20;
}

.chip-text {
    font-weight: bold;
    letter-spacing: 1px;
}

.chip-pin {
    stroke: #444;
    stroke-width: 0.5;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
}

button {
    --glow-color: rgb(217, 176, 255);
    --glow-spread-color: rgba(191, 123, 255, 0.781);
    --enhanced-glow-color: rgb(231, 206, 255);
    --btn-color: rgb(100, 61, 136);
    border: .25em solid var(--glow-color);
    padding: 1em 3em;
    color: var(--glow-color);
    font-size: 15px;
    font-weight: bold;
    background-color: var(--btn-color);
    border-radius: 1em;
    outline: none;
    box-shadow: 0 0 1em .25em var(--glow-color),
        0 0 4em 1em var(--glow-spread-color),
        inset 0 0 .75em .25em var(--glow-color);
    text-shadow: 0 0 .5em var(--glow-color);
    position: relative;
    transition: all 0.3s;
}

button::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(2em);
    opacity: .7;
    transform: perspective(1.5em) rotateX(35deg) scale(1, .6);
}

button:hover {
    color: var(--btn-color);
    background-color: var(--glow-color);
    box-shadow: 0 0 1em .25em var(--glow-color),
        0 0 4em 2em var(--glow-spread-color),
        inset 0 0 .75em .25em var(--glow-color);
}

button:active {
    box-shadow: 0 0 0.6em .25em var(--glow-color),
        0 0 2.5em 2em var(--glow-spread-color),
        inset 0 0 .5em .25em var(--glow-color);
}
