/* ===================================================== */
/* ===================== GLOBAL ======================== */
/* ===================================================== */

* {
    box-sizing: border-box;
}

body {
    background-color: #0f172a;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    line-height: 1.6;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* ===================================================== */
/* ===================== HEADER ======================== */
/* ===================================================== */

#header {
    background-color: #020617;
    padding: 20px 40px;
    border-bottom: 1px solid #1e293b;

    display: flex;
    align-items: center;
    gap: 40px;
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
}


/* ===================================================== */
/* =================== NAVIGATION ====================== */
/* ===================================================== */

#nav ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

#nav li {
    position: relative;
}

#nav a {
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

#nav a:hover {
    background-color: #1e293b;
}


/* ===================== DROPDOWN ====================== */

.dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    padding: 4px;
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 6px;

    min-width: 180px;
    padding: 8px 0;

    display: none;
    flex-direction: column;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.dropdown-menu a:hover {
    background-color: #1e293b;
}

.dropdown.active .dropdown-menu {
    display: flex;
}


/* ===================================================== */
/* ===================== CONTENT ======================= */
/* ===================================================== */

#content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: left;

    counter-reset: figure table;
}


/* ===================================================== */
/* ================= FIGURES / IMAGES ================== */
/* ===================================================== */

.doc-figure {
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    counter-increment: figure;
}

.doc-figure img {
    display: block;
    margin: 0 auto;
    max-width: 640px;
    width: auto;
    height: auto;
    border-radius: 6px;
}

.doc-figure img.screenshot {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #1e293b;
    background-color: #020617;
}

.doc-figure figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.doc-figure figcaption::before {
    content: "Figure " counter(figure) ": ";
    font-weight: 600;
    color: #cbd5f5;
}


/* ===================================================== */
/* ===================== TABLES ======================== */
/* ===================================================== */

.table-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    overflow-x: auto;
}

.pin-table {
    width: auto;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.95rem;
    background-color: #ffffff;
    border: 1px solid #334155;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

    counter-increment: table;
}

.pin-table caption {
    caption-side: top;
    padding: 8px 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #cbd5f5;
    text-align: center;
}

.pin-table caption::before {
    content: "Table " counter(table) ": ";
    font-weight: 600;
    color: #cbd5f5;
}

.pin-table thead th {
    background-color: #1f2933;
    color: #ffffff;
    text-align: left;
    padding: 12px;
}

.pin-table td {
    padding: 10px 12px;
    color: #020617;
    border-bottom: 1px solid #e5e7eb;
}

.pin-table tbody tr:nth-child(even) {
    background-color: #f1f5f9;
}

.pin-table tbody tr:hover {
    background-color: #e0e7ff;
}

.pin-table .inactive {
    color: #6b7280;
    font-style: italic;
}


/* ===================================================== */
/* ================= SCROLLABLE LOG BOX ================ */
/* ===================================================== */

.log-box {
    width: 100%;
    max-height: 260px;
    margin: 16px 0;
    padding: 14px 16px;

    overflow-y: auto;

    background-color: #020617;
    color: #e5e7eb;

    border: 1px solid #1e293b;
    border-radius: 6px;

    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.45;

    white-space: pre;
    text-align: left;
}


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

#footer {
    background-color: #111827;
    color: #e5e7eb;
    margin-top: 80px;
    padding: 50px 40px 25px 40px;
}

.footer-top {
    max-width: 1100px;
    margin: 0 auto 40px auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    height: 76px;   /* slightly bigger again */
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-services {
    text-align: center;
}

.footer-services h4 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #94a3b8;
    text-transform: uppercase;
}

.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services li {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-social {
    text-align: center;
}

.social-title {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.social-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.circle {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;

    text-decoration: none;
}

.github { background-color: #000000; }
.youtube { background-color: #dc2626; }
.linkedin { background-color: #0a66c2; }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid #1f2937;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #38bdf8;
}


/* ===================================================== */
/* ===================== RESPONSIVE ==================== */
/* ===================================================== */

@media (max-width: 768px) {

    #header {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    #nav ul {
        flex-direction: column;
        gap: 8px;
    }

    #nav a {
        display: block;
        padding: 10px;
        background-color: #1e293b;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }
}

/* Ensure submenu hidden by default */
#nav .dropdown-menu {
    display: none;
}

/* Only show when active */
#nav .dropdown.active > .dropdown-menu {
    display: flex;
}

.contact-container {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-top: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background-color: #121e2d;
    border: 1px solid #2b3b52;
    color: #fff;
    border-radius: 6px;
}

.contact-form button {
    padding: 12px;
    background-color: #00bcd4;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.success-message {
    color: #00e676;
    margin-bottom: 20px;
}

.error-message {
    color: #ff5252;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
}
.section-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;   /* THIS is critical */
    gap: 60px;
    margin: 100px 0;
}

.section-text {
    flex: 1;
}

.section-text h2 {
    margin: 0 0 20px 0;   /* remove default top margin */
}

.section-text ul {
    margin: 0;
    padding-left: 20px;
}

.section-image {
    flex: 1;
}

.section-image img {
    width: 100%;
    max-width: 520px;
    display: block;
    margin: 0;          /* remove hidden spacing */
}