/* ============================================================
   c3co.io — Chernoh's Computing Consulting
   Global Stylesheet
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
    --c3-teal: #00B4D8;
    --c3-teal-dark: #0096B4;
    --c3-gold: #F4A827;
    --c3-navy: #0D1B2A;
    --c3-navy-surface: #1A2B3C;
    --c3-light-bg: #F5F7FA;
    --c3-light-surface: #FFFFFF;
    --c3-text-light: #F0F4F8;
    --c3-text-dark: #1C2B3A;
    --c3-muted: #8A9BB0;
    --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --section-pad: 5rem 0;
    --transition-fast: 0.2s ease;
    --transition-med: 0.4s ease;
    --radius-card: 12px;
}

/* ── Base ───────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.2;
}

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

/* ── Sections ───────────────────────────────────────────── */
.c3-section {
    padding: var(--section-pad);
    position: relative;
    overflow: hidden;
}

.c3-section-alt {
    background: rgba(0,180,216,0.03);
}

.c3-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.c3-section-title::after {
    content: '';
    display: block;
    width: 3rem;
    height: 4px;
    background: var(--c3-teal);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.c3-section-subtitle {
    font-size: 1.05rem;
    opacity: 0.7;
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ── Hero ───────────────────────────────────────────────── */
.c3-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.c3-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D1B2A 0%, #0a2540 50%, #0D1B2A 100%);
    z-index: 0;
    pointer-events: none;
}

.c3-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0,180,216,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 60%, rgba(244,168,39,0.08) 0%, transparent 60%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}

.c3-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,180,216,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,180,216,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.c3-hero-content { position: relative; z-index: 1; }

.c3-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c3-teal);
    margin-bottom: 1rem;
}

.c3-hero-name {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.c3-hero-name .accent { color: var(--c3-teal); }

.c3-hero-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
}

.c3-hero-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.c3-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,180,216,0.12);
    border: 1px solid rgba(0,180,216,0.3);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--c3-teal);
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.c3-availability-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── Logo Mark ──────────────────────────────────────────── */
.c3-logo-mark {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}

.c3-logo-mark .c3-cube { color: var(--c3-teal); }
.c3-logo-mark .c3-co {
    color: #FFFFFF;
    font-weight: 800;
}
.c3-logo-mark .c3-sup {
    font-size: 0.55em;
    color: var(--c3-gold);
    font-weight: 700;
    margin-left: 1px;
    vertical-align: super;
}
.c3-logo-mark .c3-dot {
    color: var(--c3-muted);
    font-weight: 400;
}

.c3-navbar-brand { text-decoration: none; }

.c3-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.c3-nav-link:hover {
    color: var(--c3-teal) !important;
    background: rgba(0,180,216,0.08);
}

/* ── Stat Cards ─────────────────────────────────────────── */
.c3-stat-card {
    border-radius: var(--radius-card);
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0,180,216,0.15);
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.c3-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,180,216,0.15);
}

.c3-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--c3-teal);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.c3-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Service Cards ──────────────────────────────────────── */
.c3-service-card {
    border-radius: var(--radius-card);
    padding: 2rem 1.75rem;
    height: 100%;
    border: 1px solid rgba(0,180,216,0.12);
    transition: transform var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
    position: relative;
    overflow: hidden;
}

.c3-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c3-teal), var(--c3-gold));
    opacity: 0;
    transition: opacity var(--transition-med);
}

.c3-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,180,216,0.35);
    box-shadow: 0 16px 40px rgba(0,180,216,0.12);
}

.c3-service-card:hover::before { opacity: 1; }
.c3-service-icon { font-size: 2.25rem; margin-bottom: 1rem; display: block; }

/* ── Skills ─────────────────────────────────────────────── */
.c3-skill-category { margin-bottom: 2rem; }

.c3-skill-category-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c3-teal);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/* ── Experience Timeline ────────────────────────────────── */
.c3-timeline-item {
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-card);
    border: 1px solid rgba(0,180,216,0.1);
    margin-bottom: 1.5rem;
    transition: border-color var(--transition-med), box-shadow var(--transition-med);
}

.c3-timeline-item:hover {
    border-color: rgba(0,180,216,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.c3-timeline-item.active { border-left: 3px solid var(--c3-teal); }

.c3-role-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.1rem; }
.c3-company { font-size: 1rem; font-weight: 600; color: var(--c3-teal); }

.c3-date-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0,180,216,0.1);
    color: var(--c3-teal);
    border: 1px solid rgba(0,180,216,0.2);
    white-space: nowrap;
}

.c3-date-badge.active-badge {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border-color: rgba(34,197,94,0.25);
}

.c3-stack-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.c3-stack-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(0,180,216,0.08);
    border: 1px solid rgba(0,180,216,0.15);
    color: var(--c3-teal);
}

/* ── Fintech ────────────────────────────────────────────── */
.c3-fintech-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-card);
    border: 1px solid rgba(0,180,216,0.1);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.c3-fintech-item:hover {
    border-color: rgba(0,180,216,0.3);
    background: rgba(0,180,216,0.03);
}

.c3-fintech-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ── Cert Card ──────────────────────────────────────────── */
.c3-cert-card {
    border-radius: var(--radius-card);
    padding: 1.75rem;
    border: 1px solid rgba(0,180,216,0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.c3-cert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,180,216,0.12);
}

/* ── Placeholder / Coming Soon ──────────────────────────── */
.c3-placeholder-card {
    border-radius: var(--radius-card);
    padding: 3rem 2rem;
    text-align: center;
    border: 2px dashed rgba(0,180,216,0.25);
    opacity: 0.65;
}

/* ── Contact ────────────────────────────────────────────── */
.c3-contact-card {
    border-radius: var(--radius-card);
    padding: 2.5rem;
    border: 1px solid rgba(0,180,216,0.15);
    text-align: center;
    transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.c3-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,180,216,0.15);
}

/* ── Animations ─────────────────────────────────────────── */
.c3-fade-in { animation: fadeInUp 0.6s ease-out both; }
.c3-fade-in-delay-1 { animation-delay: 0.1s; }
.c3-fade-in-delay-2 { animation-delay: 0.2s; }
.c3-fade-in-delay-3 { animation-delay: 0.3s; }
.c3-fade-in-delay-4 { animation-delay: 0.4s; }
.c3-fade-in-delay-5 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Back To Top Button ─────────────────────────────────── */
.c3-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0,180,216,0.4);
    background: rgba(13,27,42,0.85);
    color: var(--c3-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: fadeInUp 0.3s ease-out both;
}

.c3-back-to-top:hover {
    background: var(--c3-teal);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,180,216,0.35);
}

.c3-back-to-top:active {
    transform: translateY(0);
}

/* ── Mobile Responsive ──────────────────────────────────── */
@media (max-width: 991.98px) {
    /* Section spacing */
    :root { --section-pad: 3.5rem 0; }

    /* Hero: use svh to account for mobile browser chrome */
    .c3-hero { min-height: 100svh; min-height: 100vh; }

    /* Hero text */
    .c3-hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; }
    .c3-hero-tagline { font-size: 0.95rem; margin-bottom: 2rem; }
    .c3-availability-badge { font-size: 0.78rem; padding: 0.35rem 0.85rem; }

    /* Cert card: stack icon + text vertically on tablets */
    .c3-cert-card { flex-direction: column; text-align: center; gap: 1rem; }

    /* Timeline: reduce horizontal padding */
    .c3-timeline-item { padding: 1.25rem 1.25rem; }

    /* Section title underline centred on mobile */
    .c3-section-title { display: block; }
    .c3-section-title::after { margin: 0.5rem auto 0; }

    /* Back-to-top: slightly smaller + closer to edge */
    .c3-back-to-top { bottom: 1.25rem; right: 1.25rem; width: 42px; height: 42px; }
}

@media (max-width: 575.98px) {
    /* Container safe padding */
    .container { padding-left: 1.25rem; padding-right: 1.25rem; }

    /* Hero */
    .c3-hero-name { word-break: break-word; }
    .c3-hero-tagline { font-size: 0.9rem; }

    /* Buttons: full-width on xs */
    .c3-hero-btns { flex-direction: column; }
    .c3-hero-btns .mud-button { width: 100%; }

    /* Stat cards: 2-up already from col-6, ensure min readable size */
    .c3-stat-number { font-size: 2rem; }
    .c3-stat-label  { font-size: 0.78rem; }

    /* Service cards: reduce padding */
    .c3-service-card { padding: 1.5rem 1.25rem; }

    /* Fintech items: tighten gap */
    .c3-fintech-item { gap: 0.75rem; padding: 1rem; }
    .c3-fintech-icon { font-size: 1.25rem; }

    /* Cert card: full width stack */
    .c3-cert-card { padding: 1.25rem; }

    /* Timeline bullets: smaller text */
    .c3-timeline-item ul li { font-size: 0.875rem; }
    .c3-timeline-item { padding: 1rem; }

    /* Contact cards: stack date badge below title */
    .c3-date-badge { font-size: 0.72rem; }

    /* Back-to-top */
    .c3-back-to-top { bottom: 1rem; right: 1rem; }

    /* Footer in ContactSection */
    .c3-contact-card { padding: 1.75rem 1.25rem; }
}

/* Ensure images/embeds never overflow */
img, video, iframe { max-width: 100%; height: auto; }

/* Prevent horizontal scroll from overflow */
section, .container { overflow-x: hidden; }

/* ── Blazor Error UI ────────────────────────────────────── */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ── Loading Progress ───────────────────────────────────── */
.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #00B4D8;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* ── Light mode logo override ───────────────────────────── */
.mud-theme-light .c3-logo-mark .c3-co,
[data-mud-theme="light"] .c3-logo-mark .c3-co {
    color: var(--c3-text-dark);
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}