:root {
  /*Max Width*/
  --max-width: 1000px;
  
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;

}

body {
    background-color: #eef1f5;
}

.pcb-bottom{
  padding: 5%;
}

.nav-wrap {
    background: #eef1f5;
    font-family: 'Rajdhani', sans-serif;
    color: #23304a;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(16, 26, 46, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-silkscreen {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nav-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}

.nav-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #101a2e;
    letter-spacing: 0.03em;
}

.nav-brand-ref {
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    color: #3c4d6e;
    letter-spacing: 0.1em;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2c3b58;
    border: 0.5px solid rgba(16, 26, 46, 0.25);
    background: rgba(16, 26, 46, 0.05);
    padding: 5px 12px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(16, 26, 46, 0.12);
    border-color: rgba(16, 26, 46, 0.5);
    color: #101a2e;
}

.nav-link .pin {
    width: 5px;
    height: 4px;
    border: 0.5px solid rgba(16, 26, 46, 0.5);
    background: rgba(16, 26, 46, 0.2);
    display: inline-block;
    flex-shrink: 0;
}

.nav-link:hover .pin {
    background: rgba(16, 26, 46, 0.5);
}

.logo {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #101a2e;
    line-height: 1.3;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600&family=Fira+Code:wght@300;400&display=swap');

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

.pcb-wrap {
    background: #eef1f5;
    min-height: 540px;
    font-family: 'Rajdhani', sans-serif;
    color: #23304a;
    overflow: hidden;
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.pcb-silkscreen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pcb-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem;
}

.pcb-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(16, 26, 46, 0.2);
}

.pcb-ref {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: #3c4d6e;
    letter-spacing: 0.1em;
}

.pcb-rev {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: #2c3b58;
    background: rgba(16, 26, 46, 0.1);
    padding: 2px 8px;
    border: 0.5px solid rgba(16, 26, 46, 0.25);
}

.pcb-main {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
}

.pcb-left {}

.pcb-ic {
    background: rgba(16, 26, 46, 0.05);
    border: 1px solid rgba(16, 26, 46, 0.3);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    max-width: 600px;
}

.pcb-ic img {
    width: 30%;
    height: auto;
}

.pcb-ic::before {
    content: 'U1';
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: #3c4d6e;
    position: absolute;
    top: 6px;
    left: 8px;
}

.pcb-ic::after {
    content: '●';
    font-size: 8px;
    color: #3c4d6e;
    position: absolute;
    top: 6px;
    right: 8px;
}

.pcb-name {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #101a2e;
}

.pcb-name span {
    font-weight: 300;
    color: #37496b;
}

.pcb-part-num {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    color: #2c3b58;
    margin-top: 4px;
}

.pcb-desc {
    font-size: 13px;
    color: #23304a;
    margin-top: 8px;
    font-weight: 300;
    max-width: 90%;
    line-height: 1.5;
    text-align: justify;
    text-justify: inter-word;
}

.pcb-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pcb-component {
    background: rgba(16, 26, 46, 0.04);
    border: 0.5px solid rgba(16, 26, 46, 0.2);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pcb-component:hover {
    background: rgba(16, 26, 46, 0.1);
    border-color: rgba(16, 26, 46, 0.5);
    color: #101a2e;
    margin: -0.1rem;
}

.pcb-component::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(16, 26, 46, 0.4);
}

.pcb-comp-ref {
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    color: #3c4d6e;
    margin-bottom: 4px;
}

.pcb-comp-name {
    font-size: 13px;
    font-weight: 500;
    color: #101a2e;
    line-height: 1.3;
}

.pcb-comp-val {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: #3c4d6e;
    margin-top: 3px;
}

.pcb-comp-val-cv {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: #37496b;
    margin-top: 5%;

}

.pcb-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pcb-connector {
    background: rgba(16, 26, 46, 0.04);
    border: 0.5px solid rgba(16, 26, 46, 0.2);
    padding: 0.75rem;
}

.pcb-conn-header {
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    color: #3c4d6e;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pcb-pin {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    font-size: 11px;
    color: #23304a;
}

.pcb-pin-rect {
    width: 8px;
    height: 6px;
    border: 0.5px solid rgba(16, 26, 46, 0.5);
    background: rgba(16, 26, 46, 0.15);
    flex-shrink: 0;
}

.pcb-pin-num {
    font-family: 'Fira Code', monospace;
    font-size: 8px;
    color: #3c4d6e;
    width: 14px;
}

.pcb-pin-label {
    font-size: 11px;
    color: #23304a;
    display: flex;
    justify-content: center;
    width: 100%;
}

.logo-img {
    width: 60%;
    opacity: 80%;
}

.pcb-footprint {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.pcb-pad {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(16, 26, 46, 0.15);
    border: 0.5px solid rgba(16, 26, 46, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-pad.filled {
    background: rgba(16, 26, 46, 0.4);
}

.pcb-pad-label {
    font-family: 'Fira Code', monospace;
    font-size: 6px;
    color: #2c3b58;
}

.pcb-bottom {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 0.5px solid rgba(16, 26, 46, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcb-bottom-meta {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    color: #3c4d6e;
    line-height: 1.7;
}

.pcb-btn {
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    border: 0.5px solid rgba(16, 26, 46, 0.4);
    background: rgba(16, 26, 46, 0.08);
    color: #2c3b58;
    padding: 6px 14px;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   MOBILE RESPONSIVE STYLES
   Everything below only applies at narrow widths.
   Desktop layout/behaviour above is untouched.
   ========================================================= */
@media (max-width: 720px) {

    /* --- Nav bar: stack brand above a wrapping row of links --- */
    .nav-wrap {
        padding: 0 0.75rem;
    }

    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 10px 0;
        gap: 0.6rem;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 5px;
    }

    .nav-link {
        padding: 6px 10px;
        flex: 1 1 auto;
        justify-content: center;
    }

    /* --- PCB content padding tightened for small screens --- */
    .pcb-content {
        padding: 1rem 0.9rem;
    }

    /* --- Main two-column layout (left content + right sidebar) stacks --- */
    .pcb-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* --- Headline shrinks so it doesn't overflow narrow viewports --- */
    .pcb-name {
        font-size: 30px;
    }

    /* --- Bio text can use full width once stacked --- */
    .pcb-desc {
        max-width: 100%;
        text-align: left;
    }

    /* --- Project tiles: single column instead of two --- */
    .pcb-projects {
        grid-template-columns: 1fr;
    }

    /* --- Right sidebar connectors get a touch less padding --- */
    .pcb-connector {
        padding: 0.6rem;
    }

    /* --- Footer meta stacks cleanly if it ever shares the row with something else --- */
    .pcb-bottom {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 420px) {

    /* --- Extra-narrow phones: shrink the headline a bit further --- */
    .pcb-name {
        font-size: 24px;
    }
}