/* ============================================================
   WOJTEK NETWORK — Combined Stylesheet
   Merged from stylesheet.css + Document.css
   ============================================================ */

/* ----- Reset & Variables ----- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #020274;
    --Section-colour: #000000;
    --background-color: #f1eeee;
    --text-color: #000000;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s;
}

/* ----- Base ----- */
body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    padding-top: 170px;
}

ul {
    list-style-type: disc;
    margin-left: 40px;
}

ul ul {
    margin-left: 40px;
}

a {
    text-decoration: none;
}

/* ----- Header ----- */
header {
    background: var(--primary-color);
    color: white;
    padding: 0.5vw;
    text-align: left;
    box-shadow: 0 4px 6px var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

/* ----- Navigation ----- */
nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    justify-content: right;
    background: var(--primary-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 19px;
}

nav ul li {
    position: relative;
    margin: 0px;
}

nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: bold;
    padding: 20px 10px;
    display: inline-block;
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    background: #ffffff;
    transform: scale(1.05);
}

/* ----- Footer ----- */
footer {
    text-align: center;
    padding: 20px; 
    width: 100%;
}

/* ============================================================
   HOME PAGE STYLES (Untitled-2.html / aboutus.html)
   ============================================================ */

/* ----- Hero Section ----- */
.hero {
    min-height: 100vh;
    background-image: linear-gradient(to bottom, rgb(240, 240, 240), rgb(255, 255, 255));
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero-title {
    text-align: center;
    align-items: center;
    color: #fe5a1d;
    font-size: 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 900;
}

.hero-text {
    color: #222020;
    font-size: 20px;
    padding: 10px;
}

.hero-image {
    position: absolute;
    right: 190px;
    top: 50%;
    transform: translateX(60%) translateY(-50%);
    pointer-events: none;
    opacity: 30%;
}

.hero-image2 {
    position: absolute;
    left: 180px;
    top: 50%;
    transform: translateX(-60%) translateY(-50%);
    pointer-events: none;
    opacity: 30%;
}

/* ----- Button ----- */
.button {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fe5a1d;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    font-family: sans-serif;
}

.button:hover {
    background-color: #db6b42;
}

/* ----- What Section ----- */
.What {
    background-color: #f8f6f6;
    padding-bottom: 100px;
}

.container {
    color: #fe5a1d;
    font-size: 35px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
}

.container1 {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    font-size: 25px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000000;
    font-weight: 600;
}

/* ----- Goals / Cards ----- */
.Goals {
    background-color: #f3eeee;
    padding-bottom: 100px;
}

.cardsContainer {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px;
    justify-content: center;
}

.card {
    border: 1px solid #000000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-image {
    width: 100%;
    height: 220px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 30px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
}

.card-text {
    font-size: 23px;
    color: #000000;
    line-height: 1.5;
}

.card-text a {
    text-decoration: none;
    color: orange;
}

.card-text a:hover {
    color: rgb(153, 105, 17);
}

/* ----- Architecture Section ----- */
.Architecture {
    background-color: #ebe2e2;
    padding-bottom: 100px;
}

.Legend {
    margin: 0 auto;
    padding: 20px;
    font-size: 23px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000000;
    font-weight: 700;
}

.Diagram {
    justify-content: center;
    align-content: center;
    display: flex;
}

/* ----- About Us ----- */
.Member-text {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
}

/* ----- Spin Animations ----- */
.spin {
    animation: spin 5s linear infinite;
}

.spin1 {
    animation: spin 5s linear infinite;
    animation-direction: reverse;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   DOCUMENTATION PAGE STYLES (Documentation.html)
   ============================================================ */

/* ----- Doc Layout ----- */
.doc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 60px 20%;
    background: white;
}

.doc-content {
    width: 100%;
}

/* ----- Sidebar Navigation ----- */
.Section-Area {
    position: sticky;
    top: 180px;
    height: fit-content;
    border-right: 2px solid #eee;
    padding-right: 20px;
}

.Section-Area a {
    display: block;
    margin: 10px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.Section-Area a:hover {
    color: #ff5a1f;
}

/* ----- Section Headings ----- */
.headings {
    color: #ff5a1f;
    margin-top: 40px;
    text-align: center;
}

section[id] {
    scroll-margin-top: 185px;
}

.title {
    color: #fe5a1d;
    font-size: 35px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.text {
    color: #000000;
    font-size: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding-top: 20px;
}

/* ----- Network Diagram ----- */
.diagram-wrapper {
    background: #12121f;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0 auto;
}

.legend {
    padding: 14px 20px 10px;
    border-bottom: 1px solid #2a2a3e;
    position: relative;
    z-index: 10;
    background: #12121f;
}

.legend h3 {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    font-size: 12px;
    color: #bbb;
}

.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot  { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

.canvas-viewport {
    height: 760px;
    overflow: hidden;
    position: relative;
}

.canvas {
    padding: 40px 30px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform-origin: 0 0;
}

/* ----- Diagram Nodes ----- */
.node {
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    color: #fff;
}

.blue   { background: #2d6aa0; border: 1px solid #3a85c8; }
.grey   { background: #4a4a5e; border: 1px solid #6a6a7e; }
.red    { background: #c0233a; border: 1px solid #e0304d; }
.green  { background: #1d7a45; border: 1px solid #26a05a; }
.purple { background: #6b3fa0; border: 1px solid #8a52cc; }
.gold   { background: #b8860b; border: 1px solid #d4a017; }

.pfsense-box, .lan-box, .services-box {
    background: #2a2a3e;
    border: 1px solid #3a3a5e;
    border-radius: 6px;
    position: relative;
    display: flex;
    justify-content: center;
}

.pfsense-box  { width: 340px; padding: 28px 16px 14px; gap: 16px; }
.lan-box      { width: 360px; padding: 28px 16px 14px; gap: 20px; }
.services-box { width: fit-content; padding: 28px 10px 14px; gap: 8px; flex-wrap: nowrap; }

.box-label {
    position: absolute;
    top: 9px; left: 50%;
    transform: translateX(-50%);
    font-size: 12px; color: #aaa; white-space: nowrap;
}

.node-internet { width: 110px; }
.node-vswitch  { width: 160px; }
.node-hyperv   { width: 140px; }
.node-wan      { width: 120px; }
.node-lan-ip   { width: 150px; }
.node-subnet   { width: 140px; }
.node-ubuntu   { width: 130px; line-height: 1.5; }
.node-win11    { width: 130px; line-height: 1.5; }
.node-docker   { width: 200px; }
.node-service  { width: 120px; line-height: 1.5; font-size: 12px; }

/* ----- Diagram Toolbar & Nav Pad ----- */
.toolbar {
    position: absolute;
    top: 10px; right: 12px;
    display: flex; gap: 6px;
    z-index: 20;
}

.toolbar button {
    background: #2a2a3e; border: 1px solid #3a3a5e;
    color: #aaa; width: 30px; height: 28px;
    border-radius: 4px; cursor: pointer; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}

.toolbar button:hover { background: #3a3a5e; color: #fff; }

.nav-buttons {
    position: absolute;
    bottom: 12px; right: 12px;
    display: grid;
    grid-template-columns: repeat(3, 28px);
    grid-template-rows: repeat(3, 28px);
    gap: 4px;
    z-index: 20;
}

.nav-btn {
    background: #2a2a3e; border: 1px solid #3a3a5e;
    color: #aaa; border-radius: 4px;
    cursor: pointer; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}

.nav-btn:hover { background: #3a3a5e; color: #fff; }
.nav-btn.empty { background: transparent; border: none; cursor: default; }

/* ----- Tables ----- */
table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td, th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #dddddd;
}

/* ----- Code & Tip Boxes ----- */
.code-box {
    background: #cfcdcd;
    padding: 16px;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
}

.tip-box {
    background: #ffffff;
    border-left: 4px solid #22c55e;
    padding: 18px 20px;
    color: #000000;
    max-width: 700px;
}

.tip-title {
    color: #22c55e;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tip-box a { color: #3b82f6; text-decoration: none; }
.tip-box a:hover { text-decoration: underline; }

/* ----- Appendices ----- */
.Appendices a {
    color: orange;
    text-decoration: none;
}

/* ----- Doc content inline links ----- */
.doc-content a {
    color: #fe5a1d;
    text-decoration: none;
}

.doc-content a:hover {
    text-decoration: underline;
}

.tip-boxb {
    background: #ffffff;
    border-left: 4px solid #2232c5;
    padding: 18px 20px;
    color: #000000;
    max-width: 700px;
}

.tip-titleb {
    color: #540dda;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tip-boxb a { color: #3b82f6; text-decoration: none; }
.tip-boxb a:hover { text-decoration: underline; }