/* =========================================================
   SUPERBASE — BASE (Developer Workspace Theme)
   Shared on every page: reset, variables, navbar, hero,
   buttons, section titles, footer, loading/empty states
   ========================================================= */

:root {

   /* Backgrounds */
   --bg: #0f0f0f; /* overall page background — very dark */
   --bg-panel: #232521; /* card / panel background (dark olive charcoal) */
   --bg-panel-alt: #2b2b20; /* slightly lighter alt panel for bars */

   /* Borders */
   --border: #25251f;
   --border-bright: #33352b;

   /* Text */
   --text: #e6e6dc;
   --text-dim: #c9ccb9;
   --text-faint: #9a9c8a;

   /* Accent — olive / green tones to match the reference */
   --blue: #7c8f2f; /* primary accent (kept name --blue for compatibility) */
   --blue-bright: #a9c44a; /* brighter accent for hover states */

   /* Reserved for errors / destructive actions */
   --red: #f06b6b;
   --red-bright: #ff8a8a;

   --amber: #d6d48a;
   --green: #6b8b3a;
   --orange: #b5774f;

   --dot-red: #f06b6b;
   --dot-yellow: #d6d48a;
   --dot-green: #7aa33a;

    
   --font-mono: 'JetBrains Mono', 'Courier New', monospace;

   --radius: 7px;
   --radius-sm: 6px;

   --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.45);
   --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.65;
    position: relative;
    min-height: 100vh;
}

/* Split background: darker textured left, subtle olive wash on right to match the reference image */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    /* left side very dark with light concrete-like noise using gradients */
    background-image:
        radial-gradient(rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,10,10,1) 54%, rgba(24,24,18,1) 54%);
    background-size: 8px 8px, 100% 100%;
    opacity: 1;
    pointer-events: none;
}

/* Right-side accent column (overlay) to deepen the olive panel feel */
body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 36%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(122,140,44,0.08), rgba(86,99,34,0.12));
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--blue-bright);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.mono {
    font-family: var(--font-mono);
    color: var(--text-dim);
}

/* Static blinking cursor, kept subtle — no glow */
.cursor::after {
    content: "\2588";
    display: inline-block;
    margin-left: 4px;
    color: var(--blue);
    animation: blink 1.1s steps(1) infinite;
}

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

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 40px; /* slightly tighter to keep navbar compact */
    border-bottom: 1px solid var(--border);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
    font-size: 15px;
    padding: 0; /* ensure logo container doesn't add extra height */
    display: flex;
    align-items: center;
    height: 64px; /* increased to fit larger logo */
}

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

.navbar nav {
    display: flex;
    gap: 32px;
}

/* New site logo image sizing */
.navbar .logo .site-logo {
    display: block;
    height: 54px; /* larger image while navbar stays compact */
    width: auto;
    object-fit: contain;
}


/* Simplified logo styling: subtle scale and shadow on hover. Complex animations removed. */
.navbar .logo {
    position: relative;
}

.navbar .logo .site-logo {
    display: block;
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.45));
}

.navbar .logo:hover .site-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.55));
}

@media (prefers-reduced-motion: reduce) {
    .navbar .logo .site-logo {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

.navbar nav a {
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 4px;
}

.navbar nav a::before {
    content: "";
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--blue-bright);
}

.navbar nav a.active {
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
}

.navbar nav a.active::after {
    content: "";
}

/* Masked animated logo label next to the logo */


/* =========================================================
   HERO / TERMINAL WINDOW
   ========================================================= */

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 56px 120px 64px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    /* subtle olive radial wash to echo the right-panel color in the reference */
    background: radial-gradient(circle, rgba(124, 143, 47, 0.06), transparent 70%);
    pointer-events: none;
}

.terminal-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: var(--bg-panel-alt);
    border-bottom: 1px solid var(--border);
}

.terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-bar .red { background: var(--dot-red); }
.terminal-bar .yellow { background: var(--dot-yellow); }
.terminal-bar .green { background: var(--dot-green); }

.terminal-bar::after {
    content: "root@superbase: ~";
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.terminal-body {
    padding: 30px 34px 38px;
    background: var(--bg-panel);
}

.terminal-body .mono {
    font-size: 13px;
    color: var(--green);
    margin-bottom: 10px;
    font-weight: 600;
}

/* ---------- Boot sequence (typed sudo su / whoami) ---------- */

.boot-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.boot-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13.5px;
    min-height: 20px;
}

.boot-prompt {
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
}

.boot-typed {
    color: var(--text);
    letter-spacing: 0.2px;
}

.boot-cursor {
    display: inline-block;
    width: 7px;
    height: 15px;
    background: var(--blue-bright);
    animation: blink 0.9s steps(1) infinite;
}

.boot-output {
    color: var(--blue-bright);
    font-weight: 600;
    font-size: 16px;
    padding-left: 2px;
    margin-top: 2px;
}

.boot-log.boot-done {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

/* ---------- Hero content reveal ---------- */
/* Ownership of .hero-content's reveal (opacity/transform/animation)
   lives entirely in home.css, since that's the stylesheet actually
   loaded for pages using this hero. No hidden/visible/display rules
   here — the element is never taken out of the render tree. */

.terminal-body h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.terminal-body h1::after {
    content: "\2588";
    display: inline-block;
    margin-left: 8px;
    color: var(--blue);
    animation: blink 1.1s steps(1) infinite;
    font-size: 24px;
    vertical-align: middle;
}

.terminal-body p {
    color: var(--text-dim);
    font-size: 14.5px;
    max-width: 600px;
}

.terminal-body p strong {
    color: var(--text);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 11px 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background: var(--blue);
    color: #1e1e1e;
    border: 1px solid var(--blue);
}

.btn-primary::before {
    content: "";
}

.btn-primary:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--bg-panel-alt);
    color: var(--text);
    border: 1px solid var(--border-bright);
}

.btn-secondary::before {
    content: "";
}

.btn-secondary:hover {
    border-color: var(--text-dim);
    background: #333336;
}

/* =========================================================
   SECTIONS (shared layout)
   ========================================================= */

.section {
    padding: 56px 48px;
    max-width: 1080px;
    margin: 0 auto;
}

/* Container that holds page sections which should have the animated backdrop.
   A dedicated canvas sits behind the content and is sized to the container. */
.content-with-bg {
    position: relative;
    overflow: hidden;
}

#sections-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* fill the container horizontally */
    height: 100%; /* JS will ensure container height covers the sections */
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    mix-blend-mode: normal;
    will-change: transform; /* help performance for animations */
}

.content-with-bg > .section,
.content-with-bg .cards,
.content-with-bg .thm-profile {
    position: relative;
    z-index: 2; /* content sits above the canvas */
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}


.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-bright);
}

.card p {
    color: var(--text-dim);
    font-size: 14px;
}

.card p:first-child {
    color: var(--text);
}

/* =========================================================
   LOADING / EMPTY STATES
   Used by any container JS fills at runtime
   (#featured-blog, #latest-blogs, #latest-writeups, etc.)
   ========================================================= */

[data-state="loading"] {
    color: var(--text-dim);
    font-size: 13px;
}

[data-state="loading"] .mono {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-weight: 500;
}

[data-state="loading"] .mono::after {
    content: "\2588";
    margin-left: 6px;
    color: var(--blue);
    animation: blink 1s steps(1) infinite;
}

[data-state="empty"] {
    border: 1px dashed var(--border-bright);
    border-radius: var(--radius);
    padding: 28px 32px;
    color: var(--text-dim);
    font-size: 13.5px;
    grid-column: 1 / -1;
}

[data-state="empty"]::before {
    content: "// ";
    color: var(--text-faint);
}

[data-state="error"] {
    border: 1px solid rgba(244, 71, 71, 0.35);
    background: rgba(244, 71, 71, 0.08);
    border-radius: var(--radius);
    padding: 20px 24px;
    color: var(--red-bright);
    font-size: 13px;
    grid-column: 1 / -1;
}

[data-state="error"]::before {
    content: "error: ";
    font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;
    padding: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 12px;
    letter-spacing: 0.3px;
}

footer::before {
    content: "";
}

/* ==========================================
   FLOATING TOOLS
   Repurposed as a quiet static toolchain strip —
   no floating motion, no absolute scatter, no glow.
========================================== */

.floating-tools {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 8px;
    z-index: 0;
}

.terminal {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 920px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tool {
    position: static;
    width: 44px;
    opacity: 0.65;
    filter: none;
    animation: none;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.tool:hover {
    opacity: 1;
}

/* ===========================
   LEFT COLUMN
   (kept as selectors for HTML compatibility;
   layout now handled by .floating-tools flex row)
=========================== */

.linux,
.python,
.github,
.hydra,
.bash,
.windows,
.docker,
.wireshark,
.metasploit,
.kali,
.nmap,
.burp {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    width: 44px;
    animation-duration: 0s;
}/* ========================================
   KUROHIDE TYPEWRITER LOGO
=========================================

/* Keep spacing consistent when used inside the navbar */
.navbar .logo .kurohide-logo {
    margin-left: 12px;
    vertical-align: middle;
}

.kurohide-logo {
    display: inline-block;

    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--text);

    /* Tactical olive bloom */
    text-shadow:
        0 0 2px rgba(255,255,255,0.25),
        0 0 10px rgba(141,154,82,0.15);

    white-space: nowrap;
    overflow: hidden;

    border-right: 2px solid var(--blue);

    width: 0ch;
}

.typewriter {
    animation:
        kurohideTyping 2.4s steps(9, end) 0.5s forwards,
        kurohideCursor 700ms steps(1) infinite;
    animation-fill-mode: forwards;
}

/* Type KUROHIDE */
@keyframes kurohideTyping {
    from {
        width: 0;
    }

    to {
        width: 10ch;
    }
}

/* Blinking terminal cursor */
@keyframes kurohideCursor {
    0%, 49% {
        border-right-color: var(--blue);
    }

    50%, 100% {
        border-right-color: transparent;
    }
}

/* Optional: make the cursor blink only a few times after typing (cinematic) */
/*
.typewriter {
    animation:
        kurohideTyping 2.4s steps(9, end) 0.5s forwards,
        kurohideCursor 700ms steps(1) 4;
}
*/

/* Extra cinematic flicker (optional) */
/*
.kurohide-logo {
    animation:
        kurohideTyping 2.4s steps(9, end) 0.5s forwards,
        kurohideCursor 700ms steps(1) 4,
        kurohideFlicker 8s infinite;
}

@keyframes kurohideFlicker {
    0%, 96%, 100% {
        opacity: 1;
    }

    97% {
        opacity: 0.92;
    }

    98% {
        opacity: 1;
    }

    99% {
        opacity: 0.96;
    }
}
*/
