/* ═══════════════════════════════════════════════════════════════════════════
   theProjectHomeLab — Global Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --color-canvas-default: #0d1117;
    --color-canvas-subtle: #161b22;
    --color-border-default: #30363d;
    --color-border-muted: #21262d;
    --color-accent-fg: #2f81f7;
    --color-fg-default: #e6edf3;
    --color-fg-muted: #7d8590;
}

/* ── Base Typography ────────────────────────────────────────────────────── */
body {
    font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background-color: var(--color-canvas-default);
    color: var(--color-fg-default);
    overflow-x: hidden;
}

/* Greek language font overrides */
body.lang-el {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}
body.lang-el h1,
body.lang-el h2,
body.lang-el h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}
body.lang-el p {
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 400;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}


/* ── Landing Page ───────────────────────────────────────────────────────── */
#landing {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.bg-zoom-anim {
    animation: slowZoom 60s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slowZoom {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

#landing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.landing-content {
    position: relative;
    z-index: 10;
}


/* ── GitHub-style Glowing Line (Homepage Spine) ─────────────────────────── */
.line-container {
    position: absolute;
    left: 24px;
    top: 100vh;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        #3fb950 5%,
        #2f81f7 25%,
        #f78166 45%,
        #a371f7 65%,
        #f778ba 85%,
        transparent 100%
    );
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .line-container { left: 80px; }
}

/* Glowing Node on the spine */
.line-node {
    position: absolute;
    left: -5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #0d1117;
    border: 2px solid;
    box-shadow: 0 0 10px currentColor;
    z-index: 10;
}


/* ── Card Component ─────────────────────────────────────────────────────── */
.gh-card {
    background-color: rgba(22, 27, 34, 0.8);
    border: 1px solid var(--color-border-default);
    border-radius: 6px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.gh-card:hover {
    border-color: rgba(47, 129, 247, 0.4);
    transform: translateY(-2px);
}


/* ── Outline Button ─────────────────────────────────────────────────────── */
.btn-outline {
    border: 1px solid var(--color-border-default);
    color: var(--color-fg-default);
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--color-accent-fg);
    border-color: var(--color-accent-fg);
    color: white;
    box-shadow: 0 0 15px rgba(47, 129, 247, 0.3);
}


/* ── Code Block Styling ─────────────────────────────────────────────────── */
.token.keyword { color: #ff7b72; }
.token.string  { color: #a5d6ff; }
.token.comment { color: #7d8590; font-style: italic; }


/* ── ZimaOS View Switcher Buttons ───────────────────────────────────────── */
.zima-btn {
    border-color: var(--color-border-default);
    transition: all 0.2s ease;
}

.zima-btn:hover {
    background-color: rgba(63, 185, 80, 0.1) !important;
    color: white !important;
}

.zima-btn.active {
    background-color: rgba(63, 185, 80, 0.1) !important;
    border-color: #3fb950 !important;
    color: white !important;
}


/* ── Service Page Styles ────────────────────────────────────────────────── */

/* Sticky sidebar on service pages */
.service-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

/* Service page code blocks */
.code-block {
    background-color: #010409;
    border: 1px solid var(--color-border-default);
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1.5rem;
}


/* ── Float animation for service hero icons ─────────────────────────────── */
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 6s ease-in-out infinite;
}


/* ── Scrollbar Styling ──────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-canvas-default);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border-default);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-fg-muted);
}


/* ── Selection Color ────────────────────────────────────────────────────── */
::selection {
    background-color: rgba(47, 129, 247, 0.4);
    color: white;
}


/* ── Smooth Scroll for anchor links ─────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}
