@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Poppins:wght@300&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");

:root {
    --image-outline: rgb(162, 157, 157);
    --blue-fill: rgb(36, 94, 152);
    --intro-text: rgb(36, 35, 35);
    --primary-text-colour: black;
    --primary-background: rgb(237, 237, 237);
    --table-line-theme: #ddd;
    --background-greyish: rgb(230, 230, 230);
    --inactive-text-colour: rgb(155, 155, 155);
    --active-text-colour: white;

    /* Homepage redesign tokens ("Signal") */
    --hp-bg: #FFFFFF;
    --hp-ink: #1C1B1F;
    --hp-muted: #55545C;
    --hp-accent: #2F49D1;
    --hp-border: #E7E7EC;
    --hp-tag-bg: #EEF1FC;
    --hp-tag-text: #2338A0;
}

[data-theme="dark"] {
    --image-outline: rgb(162, 157, 157);
    --blue-fill: rgb(61, 65, 75);
    --intro-text: rgb(237, 237, 237);
    --primary-text-colour: rgb(250, 250, 250);
    --primary-background: rgb(32, 33, 36);
    --background-greyish: rgb(47, 50, 60);
    --active-text-colour: black;

    --hp-bg: #15161C;
    --hp-ink: #F2F1F5;
    --hp-muted: #A0A0AC;
    --hp-accent: #6C86FF;
    --hp-border: #2A2A33;
    --hp-tag-bg: #1E2440;
    --hp-tag-text: #AEB9FF;
}

body {
    width: 100vw;
    height: auto;
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
    color: var(--primary-text-colour);
    background-color: var(--primary-background);
    transition:
        background-color 0.3s,
        color 0.3s;
    /* Smooth transition */
}

/* Removing the default link styling and keeping the colour blue */
a:visited {
    text-decoration: none;
    color: var(--blue-fill);
}

a:hover {
    text-decoration: none;
    color: var(--blue-fill);
}

a:focus {
    text-decoration: none;
    color: var(--blue-fill);
}

a:hover,
a:active {
    text-decoration: none;
    color: var(--blue-fill);
} 

::-webkit-scrollbar {
    width: 2px;
}

button {
    position: relative;
    background: none;
    outline: none;
    border: 1px solid var(--primary-text-colour);
    border-radius: 0.25em;
    font-size: 17px;
    color: var(--primary-text-colour);
    padding: 0.25em 0.75em;
    cursor: pointer;
    overflow: hidden;
    /* Hides the border */
    transition: all 0.3s;
    z-index: 100;
    margin: 0.5em;
    width: 150px;
}

button span {
    padding-right: 0.5em;
}

.btn-fill:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-text-colour);
    z-index: -1;
    transition: all 0.3s;
}

.btn-fill:hover {
    color: var(--primary-background);
}

button:hover:after {
    width: 100%;
}

.button-active {
    background: var(--primary-text-colour);
    color: var(--primary-background);
}

footer {
    margin-top: 100px;
}

.email-container {
    margin-top: 20px;
    text-decoration: none;
    color: black;
}

.system-theme-light-dark {
    cursor: pointer;
}

.system-theme-light-dark:hover {
    text-decoration: underline;
}

.email-container a {
    text-decoration: none;
    color: var(--primary-text-colour);
}

.email-container a:hover span {
    text-decoration: underline;
}

.system-theme-light-dark {
    text-decoration: none;
    color: var(--primary-text-colour);
}

/* HOMEPAGE ("Signal" redesign) STARTS HERE ****************************************************************/

.hp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.25s, border-color 0.25s;
}

.hp-nav--solid {
    background: var(--hp-bg);
    border-bottom-color: var(--hp-border);
}

.hp-nav-brand,
.hp-nav-brand:visited {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 18px;
    text-decoration: none;
    color: var(--hp-ink);
}

.hp-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.hp-nav-links a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--hp-muted);
    transition: color 0.2s;
}

.hp-nav-links a:hover,
.hp-nav-links a.hp-nav-link-active {
    color: var(--hp-accent);
}

.hp-nav-toggle {
    display: none;
    width: auto;
    margin: 0;
    padding: 6px 8px;
    border: none;
    font-size: 18px;
    color: var(--hp-ink);
}

.hp-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
    padding: 54px 40px 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.hp-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp-accent);
    margin-bottom: 14px;
}

.hp-hero h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 400;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    color: var(--hp-ink);
    margin: 0 0 16px;
}

.hp-hero-pitch {
    font-size: 15px;
    line-height: 1.65;
    max-width: 42ch;
    color: var(--hp-muted);
    margin: 0 0 24px;
}

.hp-socials {
    display: flex;
    gap: 18px;
    font-size: 21px;
}

.hp-socials a {
    color: var(--hp-ink);
    text-decoration: none;
}

.hp-socials a:hover {
    color: var(--hp-accent);
}

.hp-hero-graphic {
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--hp-tag-bg);
    overflow: hidden;
}

.hp-hero-graphic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-section-label {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp-accent);
    margin-bottom: 26px;
}

.hp-featured,
.hp-more-projects,
.hp-experience {
    padding-top: 50px;
    border-top: 1px solid var(--hp-border);
}

.hp-project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.hp-project-row--rev .hp-thumb {
    order: 2;
}

.hp-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--hp-border);
    transition: transform 0.25s;
}

.hp-thumb:hover {
    transform: translateY(-4px);
}

.hp-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.hp-project-text h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--hp-ink);
    margin: 0 0 10px;
}

.hp-project-text p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--hp-muted);
    margin: 0 0 16px;
}

.hp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hp-tags span {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--hp-tag-bg);
    color: var(--hp-tag-text);
}

.hp-project-link,
.hp-project-link:visited,
.hp-project-link:hover,
.hp-project-link:active {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--hp-accent);
    border-bottom: 1.5px solid var(--hp-accent);
    padding-bottom: 2px;
}

.hp-project-link i {
    font-size: 11px;
    margin-left: 2px;
    transition: transform 0.2s;
}

.hp-project-link:hover i {
    transform: translateX(3px);
}

.hp-more-list {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hp-more-list li {
    border-top: 1px solid var(--hp-border);
    padding: 16px 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.hp-more-list li a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.hp-more-list li a:hover .hp-more-title {
    color: var(--hp-accent);
}

.hp-more-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-ink);
    transition: color 0.2s;
}

.hp-more-tech {
    font-size: 12px;
    color: var(--hp-muted);
}

.hp-experience-entry {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

.hp-experience-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--hp-muted);
    padding-top: 4px;
}

.hp-experience-body h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--hp-ink);
    margin: 0 0 4px;
}

.hp-experience-body h3 {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--hp-ink);
    margin: 0 0 4px;
}

.hp-experience-org {
    font-size: 13px;
    color: var(--hp-accent);
    margin-bottom: 10px;
}

.hp-experience-body p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--hp-muted);
    margin: 0 0 14px;
}

.hp-experience-entry--secondary {
    padding-top: 30px;
    border-top: 1px solid var(--hp-border);
}

.hp-footer {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 30px 40px 60px;
    border-top: 1px solid var(--hp-border);
}

.hp-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-bottom: 16px;
}

.hp-footer-links .system-theme-light-dark,
.hp-footer-links .email-container,
.hp-footer-links .email-container a,
.hp-footer-links > a {
    font-size: 13px;
    color: var(--hp-muted);
    margin: 0;
}

.hp-footer-links .system-theme-light-dark:hover,
.hp-footer-links .email-container a:hover span,
.hp-footer-links > a:hover {
    color: var(--hp-accent);
    text-decoration: none;
}

.hp-footer-links > a {
    text-decoration: none;
}

.hp-footer-blurb {
    font-size: 12px;
    color: var(--hp-muted);
}

@media only screen and (max-width: 900px) {
    .hp-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--hp-bg);
        border-bottom: 1px solid var(--hp-border);
        padding: 10px 40px 18px;
    }

    .hp-nav-links.hp-nav-links--open {
        display: flex;
    }

    .hp-nav-links a {
        padding: 10px 0;
    }

    .hp-nav-toggle {
        display: block;
    }

    .hp-hero {
        grid-template-columns: 1fr;
        padding: 40px 24px 50px;
    }

    .hp-hero-graphic {
        width: 160px;
        margin: 32px auto 0;
    }

    .hp-section-label,
    .hp-project-row,
    .hp-more-list,
    .hp-experience-entry,
    .hp-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hp-project-row,
    .hp-project-row--rev {
        grid-template-columns: 1fr;
    }

    .hp-project-row--rev .hp-thumb {
        order: 0;
    }

    .hp-experience-entry {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-thumb,
    .hp-project-link i,
    .hp-nav {
        transition: none;
    }
}

/* PROJECTS/EXPERIENCE PAGE STARTS HERE  *****************************************************************/
.projects-page-container {
    display: flex;
    flex-direction: column;
}

.projects-page-introduction {
    width: 50%;
    margin: 50px;
}

.projects-page-subheading {
    text-align: left;
}

.projects-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-top: 20px;
    /* border: 1px solid black; */
}

.projects-page-container tr:hover {
    box-shadow: 0px 0px 10px rgba(116, 116, 116);
    transform: translateY(-5px);
    /* move the box to the left */
    transition: 0.3s;
}

.projects-page-table {
    margin-top: 20px;
    border-collapse: collapse;
    width: 50%;
    /* Adjust based on your preference */
    border: 1px solid var(--table-line-theme);
}

.projects-page-table th,
.projects-page-table td {
    text-align: left;
    padding: 15px;
}

.projects-page-table tr:nth-child(even) {
    background-color: var(--background-greyish);
}

.projects-page-table th {
    background-color: black;
    color: white;
}

.projects-page-table img {
    width: 80%;
    /* or any other size */
    height: auto;
}

.project-page-table-description {
    color: var(--intro-text);
}

.project-page-table-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.project-page-table-item-container {
    text-align: left;
    width: 200px;
}


.project-page-footer-left {
    margin-left: 30px;
    /* align to the left */
    text-align: left;
}

.project-page-footer-content {
    border-top: 1px solid var(--image-outline);
    align-items: flex-start;
}

.project-page-footer-section {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    margin-top: 20px;
}

.project-page-footer-blurb {
    /* border: 1px solid black; */
    width: 50%;
    justify-content: left;
    margin-right: 30px;
    text-align: left;
}

.project-page-experience_projects-btn-container {
    display: flex;
    background: var(--background-greyish);
    border-radius: 10px;
    padding: 10px;
    margin: 20px;
}

#project-page-experience-btn,
#project-page-projects-btn {
    border-radius: 7px;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

.active-project-page-btn {
    background: var(--active-text-colour);
    color: var(--primary-text-colour);
}

.inactive-project-page-btn {
    color: var(--inactive-text-colour);
}

.projects-page-subheading a {
    text-decoration: underline;
    font-size: 1.2em;
    color: var(--primary-text-colour);
    cursor: pointer;

}

/* projects page github */
.projects-page-subheading a:hover {
    color: grey;
}

.projects-page-title {
    display: flex;
    justify-content: flex-start;
    /* Align items to the start of the container */
    width: 100%;
    /* Or a specific width that fits your layout */
    font-size: 30px;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 60px;
    /* make italic */
}

/* Student IT Technician Page ********************************************************************************************************************* */

.student-technician-page-container {
    margin: 50px;
}
.student-technician-page_headers {
    font-size: 30px;
}

.student-technician-page_subtext {
    font-size: 14px;
}

.back-button {
     /*position: absolute; */
    top: 20px;
    left: 0px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 40px;
    color: #007BFF;
    transition: transform 0.6s ease;
    /* border: 2px solid white; */
}
 

.back-button i {
    transition: all 0.3s ease;
}

.back-button:hover i {
    animation: rainbow 1s infinite linear;
}

.rotate-once {
    animation: rotate360 0.6s ease;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.student-technician-page_title {
    font-size: 60px;
    font-weight: bold;
    /* border: 2px solid black; */
    text-align: center;
    margin: 50px;
}

.student-technician-page_headers {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s, color 0.3s;
}



.student-technician-page_subtext {
    display: none;
    padding: 10px;
    border-left: 2px solid #ccc;
    margin-bottom: 10px;
    line-height: 2;
}

.active .student-technician-page_subtext {
    display: block;
}

[data-theme='dark'] .student-technician-page_headers {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

[data-theme='dark'] .student-technician-page_headers:hover {
    background-color: #444;
}

[data-theme='dark'] .student-technician-page_subtext {
    border-left: 2px solid #555;
}

.student-technician-page_img {
    width: 500px;
}

#my-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Initially send the canvas to the back */
    pointer-events: none; /* Prevent the canvas from blocking other elements */
}

/* Castle Ridge Asset Management */


/* CASTLE RIDGE PORTION *//* Basic "terminal" look-and-feel */
.terminal-container {
    background-color: #1e1e1e; /* Dark background */
    color: #c5c8c6;           /* Lighter text */
    font-family: monospace;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    position: relative;
}
  
.terminal-header {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
  
.terminal-header .title {
    font-weight: bold;  
}
  
.terminal-body {
    margin-top: 10px;
}
  
/* Fake "prompt" label */
.prompt {
    color: #00f700; /* Green text (like many terminal prompts) */
    margin-right: 5px;
}
  
/* Terminal output area */
#terminal-output {
    white-space: pre-wrap;  /* Preserve spacing for multiline text */
    margin-bottom: 8px;
    min-height: 200px;      /* Just to keep some space visible */
    overflow-y: auto;
}
  
      /* Input style */
.terminal-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #c5c8c6;
    color: #c5c8c6;
    font-family: monospace;
    padding: 6px 2px;
    outline: none;
}

.terminal-input::placeholder {
    color: #666;
}

.terminal-input:focus {
    outline: none;
    border-bottom: 1px solid white;
}

/* Basic fade-in used for sections (optional) */
.fade-in-on-scroll {
    opacity: 0;
    transition: opacity 1s ease-out;
}
.fade-in-on-scroll.visible {
    opacity: 1;
}

/* Homepage responsive + motion rules live in the "hp-" section above. */