body {
  margin: 0;
  background-image: url('ghosts_crt.png'); opacity: 1; /* base background */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Consolas', serif;
  color: #ffffff;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
    text-shadow:
    -1px 0 rgba(255,0,0,0.2),
     1px 0 rgba(0,180,255,0.2);
}




@font-face {
  font-family: 'Consolas';
  src: url('') format('truetype');
}

.logo-header img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-header img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}


.aliases {
  visibility: hidden;
  text-align: center;
  font-size: 0.9em;
  color: #cccccc;
  margin-top: -45px;
  margin-bottom: 30px;
  font-family: "Consolas", serif;
  font-style: Normal; /* lowercase + semicolon */
  position: relative;
  z-index: 1;
}



.container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.sidebar {
  width: 40%;
  padding: 60px 340px 60px 100px; /* top right bottom left */
  box-sizing: border-box;
}


.sidebar h1 img {
  width: 600px; /* or any width you want */
  height: auto;
  display: block;
}


.sidebar nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;            /* centers the ul horizontally */
  width: fit-content;        /* shrink-wrap the width of the list */
}

.sidebar nav li {
  margin: 12px 0;
}

.sidebar nav a {
  display: inline-block;     /* shrink-wrap the link width */
  text-align: center;
}


nav a {
  display: block;
  font-size: 1.3em;
  margin: 5px 0;
  color: #ffffff;
  text-decoration: none;
  transition: 0.2s;
}

nav a:hover {
  text-decoration: underline;
  color: #6d2b70;
}

.main-image {
  width: 60%;
  display: flex;
  flex-direction: column; /* 👈 Add this to stack image and caption vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-image img {
  max-width: 100%;
  height: 80%; /* 👈 Use this instead of `max-height: 80%` to avoid zooming/cropping */
  object-fit: contain;
}

.image-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
  color: #cccccc;
  margin-top: 10px;
}

/* ==========  BOOT SCREEN CONCEPT  ========== */

#boot-screen {
  position: fixed;
  z-index: 1000;

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

}

.boot-content {
  text-align: left;
  font-size: 22px;
  line-height: 1.6;
  color: #bfffea;
  text-shadow:
    0 0 3px rgba(180, 255, 220, 0.6),
    0 0 12px rgba(180, 255, 220, 0.25);
}

#daemon-screen {
  position: fixed;
  bottom: 350px;
  right: 60px;
  z-index: 1000;
  opacity: 0;
  animation: daemonIn 1.5s ease forwards;
  animation-delay: 2s;
}

@keyframes daemonIn {
  from {
    opacity: 0;
    transform: translateY(20px) skewX(-2deg);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

#daemon-key {
  margin-top: 10px;
  cursor: pointer;
  color: white;
  border: 1px dashed #7affc8;
  padding: 6px;
  display: inline-block;
}

#daemon-key:hover {
  background: rgba(122, 255, 200, 0.1);
}


.daemon-content {
  text-align: left;
  font-size: 16px;
  width: 90%;
  margin-top: 50px;
  margin-right: 850px;
  line-height: 1.6em;
  color: white;
  text-shadow:
    0 0 3px rgba(255, 61, 65, 0.6),
    0 0 12px rgba(255, 61, 65, 0.25);
}



.boot-content p {
    font-family: "Consolas", serif;
  max-width: 900px;          /* readable line‑length */
  width: 90%;
  margin-top: 200px;          /* gap under logo */
  text-align: left;          /* keep body‑text readable */
  line-height: 1.6em;
  background: rgba(0, 0, 0, 0.2)
}

#boot-key {
  margin-top: 20px;
  display: inline-block;
  color: white;
  cursor: pointer;
  animation: bootPulse 1.5s infinite;

  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.3);
}

#boot-key:hover {
  background: rgba(255,255,255,0.08);
}

@keyframes bootPulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.boot-hint {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.6;
}

#site {
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.unlocked #boot-screen {
  opacity: 0;
  pointer-events: none;
}

body.unlocked #site {
  opacity: 1;
}


.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: black;
  color: #bfffea;
  font-family: "Pixelary", monospace;
  font-size: 18px;
}


.progress-bar {
  width: 60%;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  margin-top: 30px;
}

.progress {
  height: 100%;
  width: 0;
  background: white;
  animation: load 3s linear forwards;
}

@keyframes load {
  to { width: 100%; }
}

#password-display {
  font-size: 2rem;
  letter-spacing: 12px;
  margin: 20px 0;
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.progress-bar {
  width: 60%;
  height: 8px;
  border: 1px solid #0f0;
  margin-top: 20px;
}

.progress {
  height: 100%;
  width: 0%;
  background: #0f0;
  animation: load 2s linear forwards;
}

@keyframes load {
  to { width: 100%; }
}


.terminal-input {
  font-family: "Courier New", monospace;
  font-size: 22px;
  margin: 20px 0;
  letter-spacing: 4px;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.1%, 100% { opacity: 0; }
}

.label {
  opacity: 0.7;
  font-size: 14px;
  margin-top: 20px;
}

#real-input {
  position: absolute;
  opacity: 1;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}




/* ==========  CENTRED “ABOUT‑PAGE” LAYOUT  ========== */
body.about-page {
  margin: 0;
  font-family: "Consolas", serif;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.about-container::-webkit-scrollbar {
  width: 8px;
}

.about-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.about-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.about-container {
  scrollbar-width: thin;             /* Firefox */
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}



/* logo at the top, raised slightly */
.about-page .logo-header {
  margin-top: 60px;
  text-align: center;
}
.about-page .logo-header img {
  width: 600px;              /* tweak as required  */
  max-width: 90vw;
  height: auto;
}

/* container that holds all the text, centred on page */
.about-container {
  max-width: 900px;          /* readable line‑length */
  width: 90%;
  margin-top: 35px;          /* gap under logo */
  text-align: center;          /* keep body‑text readable */
  line-height: 1.6em;
  background: rgba(0, 0, 0, 0.5)
}

/* headings */
.about-container h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6em;
    text-align: center;
}
.about-container h3 {
  font-size: 1.8rem;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  text-align: center;
}
.about-container h4 {
  font-size: 1.35rem;
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  text-align: center;
}

/* paragraphs */
.about-container p {
  font-size: 1.2rem;
  margin-bottom: 2.2rem;
  text-align: left;
}

/* (optional) make long pages scroll nicely */
.about-container {
  overflow-y: auto;
  max-height: calc(100vh - 300px); /* keeps logo visible */
  padding-right: 8px;              /* space for scrollbar */
}








/* ======= TIMELINE WRAPPER (scrollable content) ======= */
.academicprojects-page .timeline-wrapper {
  width: 100%;
  max-width: 1400px;
  padding: 60px 20px;
  box-sizing: border-box;
  margin: 0 auto;
  overflow-y: auto;
  height: auto; /* Or 100vh if you want scrolling */
}


/* ======= TIMELINE VERTICAL LINE ======= */
.timeline {
  position: relative;
  width: 100%;
  padding: 0px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: #ffffff;
  z-index: 0;
}


/* ======= TIMELINE ITEM BLOCK ======= */
.timeline-item {
  position: relative;
  width: 46%;
  padding: 20px;
  margin-bottom: 100px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  z-index: 1;
}

.timeline-container {
  width: 80%;
  max-width: 1400px;
  padding: 60px 20px;
  box-sizing: border-box;
  position: relative;
}



/* Dot on the timeline */
/* Shared dot style */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: 2;
}

/* Dot for LEFT items (dot on right edge) */
.timeline-item.left::before {
  right: -24px; /* sits just left of the center line */
}

/* Dot for RIGHT items (dot on left edge) */
.timeline-item.right::before {
  left: -10px; /* sits just right of the center line */
}


/* ======= TIMELINE LEFT / RIGHT POSITIONING ======= */
.timeline-item.left {
  left: 0%;
  text-align: right;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* ======= HEADINGS ======= */
.timeline-item h1 {
  font-size: 2em;
  margin-bottom: 0.3em;
}
.timeline-item h4 {
  font-size: 1em;
  font-style: italic;
  margin-top: -10px;
  margin-bottom: 10px;
  color: #cccccc;
}

/* ======= IMAGE ======= */
.timeline-item img {
  width: 100%;
  height: auto;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin-top: 10px;
}

/* ======= PARAGRAPH ======= */
.timeline-item p {
  font-size: 1.1em;
  line-height: 1.6em;
  margin-top: 12px;
  margin-bottom: 20px;
}

.timeline-item.left p {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}


/* ======= TAGS ======= */
.timeline-item .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-start;
}

.timeline-item .tag {
  color: #fff;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

/* ======= TAG COLORS ======= */
.tag-purple {
  background-color: #6d2b70;
}
.tag-orange {
  background-color: #ff8c00;
}
.tag-green {
  background-color: #2b7043;
}
.tag-red {
  background-color: #702b2b;
}
.tag-blue {
  background-color: #00c0fa;
}

/* ======= TAG HOVERS ======= */
.tag-purple:hover {
  background-color: rgba(145, 74, 148, 1);
}
.tag-orange:hover {
  background-color: rgba(255, 140, 0, 1);
}
.tag-green:hover {
  background-color: rgba(43, 112, 67, 1);
}
.tag-red:hover {
  background-color: rgba(255, 48, 107, 1);
}
.tag-blue:hover {
  background-color: rgba(117, 223, 255, 1);
}


/* ======= IMAGE STUFF ======= */

.slider {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box; /* ✅ prevents padding/border from overflowing */
}


/* Each image inside the slider */
.slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* ✅ ensures full fill of slider container */
  height: auto;
  object-fit: cover; /* optional: helps in edge-clipping scenarios */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-sizing: border-box; /* ✅ important for borders */
}


/* The visible one */
.slider .active {
  opacity: 1;
  position: relative; /* bring it above others */
  z-index: 1;
}




/* ======= Personal Projects ======= */

.personalprojects-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
}

.personalprojects-page .logo-header {
  margin-top: 60px;
  text-align: center;
}

.personalprojects-page .logo-header img {
  width: 600px;
  height: auto;
  max-width: 90vw;
}

/* Central container for content */
.personalprojects-container {
  max-width: 900px;
  width: 90%;
  margin-top: 80px;
  padding: 0 20px;
  line-height: 1.6em;
}

/* Headings */
.personalprojects-container h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 0.6em;
}

.personalprojects-container h1 {
  font-size: 2rem;
  margin-bottom: 0.4em;
}

/* Image styling */
.personalprojects-container img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.3);
  margin-top: 10px;
}

/* Project text */
.project-item p {
  font-size: 1.1em;
  margin-top: 12px;
  margin-bottom: 40px;
}

/* Tags */
.project-item .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}

.project-item .tag {
  color: #fff;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Divider between projects */
.personalprojects-container hr {
  margin: 60px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}



/* ===== PROJECT GATE PAGE RESET ===== */
.crt {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;

  /* IMPORTANT: cancel flex layout from other pages */
  display: block;
}

/* ===== PROJECT GATES ===== */

.gate-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Individual gate */
.gate {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #050707;
  border-right: 1px solid rgba(180,255,220,0.15);

  text-decoration: none;
  cursor: pointer;

  transition: flex 0.8s ease;
}

/* Default compression when container hovered */
.gate-wrapper:hover .gate {
  flex: 0.75;
}

/* Expand hovered gate */
.gate-wrapper .gate:hover {
  flex: 3;
}

/* Label text */
.gate-label {
  position: absolute;
  z-index: 2;

  writing-mode: vertical-rl;
  transform: rotate(180deg);

  font-family: "Pixelary", monospace;
  font-size: 24px;
  letter-spacing: 4px;

  color: #bfffea;
  text-shadow:
    0 0 4px rgba(180,255,220,0.8),
    0 0 12px rgba(180,255,220,0.4);
}

/* Preview image */
.gate-preview {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  opacity: 0;
  transition: opacity 0.6s ease;

  filter:
    brightness(0.8)
    contrast(1.1)
    saturate(0.9);
}

/* Reveal preview on hover */
.gate:hover .gate-preview {
  opacity: 1;
}

/* Subtle CRT flicker */
.gate {
  animation: gateFlicker 6s infinite;
}

@keyframes gateFlicker {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.03); }
}

/* Glitch twitch on hover */
.gate:hover {
  animation: gateGlitch 0.12s steps(2) forwards;
}

@keyframes gateGlitch {
  0%   { transform: translate(0,0); }
  50%  { transform: translate(-2px,1px); }
  100% { transform: translate(0,0); }
}



/* ===== LINKS PAGE STYLE ===== */
body.links-page {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-size: cover;
  font-family: 'pixelary', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.links-container {
  display: block;
  flex-direction: column;
  align-items: center;
  transform: translateY(-20%); /* Slight lift off vertical center */
  text-align: center;
}

.logo-header img {
  width: 420px; /* Adjust logo size as needed */
  max-width: 90%;
}

.dev-subtext {
  margin-top: -12px;
  font-size: 1.2em;
  letter-spacing: 4px;
}

.social-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;

  transform: translateX(-2%); /* Slight left shift */
}


.social-links img {
  width: 85px; /* You already sized these in HTML, but this ensures fallback */
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  
}

.social-links img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Header Logo */
.links-page .logo-header img {
  width: 900px; /* or max-width: 100%; for responsive */
  height: auto;
}

/* Social icons */
.links-page .social-links img {
  width: 55px;
  height: auto;
  margin: 0 12px; /* optional spacing */
}

.links-page .social-links img[alt="LinkedIn"] {
  width: 60px;
}



.academicprojects-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
}

.academicprojects-page .logo-header {
  margin-top: 60px;
  text-align: center;
}

.academicprojects-page .logo-header img {
  width: 600px;
  height: auto;
}







/* container that sits behind the site */
.background-fader {
  position: fixed;
  inset: 0;                /* shorthand for top/right/bottom/left = 0 */
  z-index: -1;             /* keep behind content */
  overflow: hidden;
}

/* every layer fills the viewport */
.bg-layer {
  opacity: 0;
  visibility: hidden;
  transition: opacity 15s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.bg-layer.loaded {
  visibility: visible;
}

/* initial images */
.layer1 { background-image: url("BGs/ghosts_black_1_mutedcolour.png"); opacity: 0; }
.layer2 { background-image: url("BGs/ghosts_black_2_mutedcolour.png"); }
.layer3 { background-image: url("BGs/ghosts_black_3_mutedcolour.png"); }
.layer4 { background-image: url("BGs/ghosts_black_4_mutedcolour.png"); }



/* ===== CRT OVERLAY ===== */


.crt-overlay,
.crt-noise,
.crt-scanlines,
.crt-vignette,
.crt-curvature {
  pointer-events: none !important;
}


.crt-wrapper {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 100;
    filter:
    brightness(1.08)
    contrast(1.12)
    saturate(1.08)
    drop-shadow(0 0 3px rgba(0,255,180,0.12));
}



.crt-curvature {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.06) 0%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.65) 100%
  );

  transform:
    scale(1.06)
    perspective(700px)
    rotateX(0.80deg)
    rotateY(0.50deg);
    
mix-blend-mode: normal;
}


.crt-vignette {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;

  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.06),
      rgba(0,0,0,0.35) 65%,
      rgba(0,0,0,0.8) 100%
    );

  mix-blend-mode: overlay;
}

.crt-scanlines {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.5),
      rgba(0,0,0,0.5) 0.5px,
      rgba(0,0,0,0) 1px,
      rgba(0,0,0,0) 3px
    );
  mix-blend-mode: normal;
  opacity: 0.2;
}

.crt-noise {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;

  background-image: url("crt_noise.png");
  background-size: 200px 200px;
  opacity: 0.35;
  mix-blend-mode: overlay;

  animation: crtNoiseShift 0.18s steps(2) infinite;
}

@keyframes crtNoiseShift {
  0% { background-position: 0 0; }
  100% { background-position: 120px 60px; }
}



.crt-overlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;

 background:
    /* glow rolloff */
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.5) 0%,
      rgba(0,0,0,0.35) 65%,
      rgba(0,0,0,0.85) 100%
    ),
    /* scanlines */
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.18) 0px,
      rgba(0,0,0,0.18) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 4px
    );

  mix-blend-mode: overlay;
}

.crt-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;


  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.08) 0%,
    rgba(0,0,0,0.25) 70%,
    rgba(0,0,0,0.5) 100%
  );

  opacity: 0.35;
}

.crt-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;


  background-image: url("crt_noise.png");
  opacity: 0.35;
  width: 1920px;
  height: 1080px;
  animation: crtNoise 0.3s steps(2) infinite;
}

@keyframes crtNoise {
  0% { transform: translate(0,0); }
  100% { transform: translate(-2%, -1%); }
}

body {
  text-shadow:
    0 0 2px rgba(0, 255, 180, 0.3),
    0 0 6px rgba(0, 255, 180, 0.15);
}

