        /* Smooth Scroll */
        html {
            scroll-behavior: smooth;
            cursor: none; 
        }
body {
    cursor: none; /* hide default cursor */
    overflow-x: hidden; /* prevent horizontal scrollbar from cursor trail */
    margin: 0;

    /* Background image */
    background-image: url('starrysky.png');
    background-size: cover;      /* makes the image cover the viewport */
    background-position: center; /* centers the image */
    background-repeat: no-repeat;/* prevent tiling */
    background-attachment: fixed; /* optional: makes background stay while scrolling */
    
    /* Optional: fallback color */
    background-color: black;
}

        /* --- MENU ACTIVE STATE & SCROLL OFFSET --- */
        .menu a.active {
            color: #fc7c7c !important; 
        }
        #about, 
        #projects, 
        #languages {
            scroll-margin-top: 121px;
        }

        /* Cursor */
        #cursor-trail-container2 {
            position: fixed;
            top: 0;
            left: 0;
            pointer-events: none;
            z-index: 10000;
        }

        /* STATIC CURSOR */
        #static-cursor {
            position: fixed;
            width: 0;
            height: 0;
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-bottom: 24px solid white;
            filter: drop-shadow(0 0 4px red);
            pointer-events: none;
            z-index: 10001;
            /* Start off-screen so it doesn't appear at top-left on load */
            top: -100px;
            left: -100px;
            /* Centers the triangle on mouse coordinates */
            transform: translate(-50%, -50%);
        }

        .trianglewhite5 {
            position: absolute;
            width: 0;
            height: 0;
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-bottom: 24px solid white;
            filter: drop-shadow(0 0 4px red);
            animation: pulse5 5s ease-in-out infinite;
            transition: opacity 0.3s ease;
            transform: translate(-50%, -50%); 
        }

        @keyframes pulse5 {
            0%, 100% { transform: translate(-50%, -50%) scale(1); }
            50% { transform: translate(-50%, -50%) scale(1.1); }
        }

        /* Layout */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            margin: 45px;
            gap: 30px;
        }
        .project-card {
            background-color: #111;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            padding-bottom: 10px;
            box-shadow: 0 6px 12px white;
        }
        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 18px white;
        }
        a {
            text-decoration: none;
            color: white; 
            transition: color 0.3s ease;
        }
        .menu a:hover {
            color: #fc7c7c; 
        }

        .project-card img {
            width: 100%;
            display: block;
        }
        .project-card h3 {
            margin: 1rem 1rem 0.5rem;
            font-size: 25px;
            font-family: "Candal", sans-serif;
            font-weight: 500;
            color: #fc7c7c;
            transition: color 0.3s ease;
        }
        .project-card:hover h3 {
            color: white;
        }
        .project-card p {
            margin: 0 1rem 1.5rem;
            font-size: 19px;
            font-family: 'Titillium Web', sans-serif;
            color: white;
        }

        /* Buttons */
        .project-links {
            margin: 0.4rem 1rem 1rem;
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .project-btn {
            padding: 5px 18px;
            border-radius: 999px;
            background-color: transparent;
            border: 1px solid #fc7c7c;
            color: #fc7c7c;
            font-family: 'Titillium Web', sans-serif;
            font-size: 17px;
            transition: 0.3s ease;
        }
        .icon-btn {
            border-radius: 999px;
            padding: 5px 15px;
            border: 1px solid #fc7c7c;
            color: #fc7c7c;
            font-size: 20px;
            transition: 0.3s ease;
        }
        .project-btn:hover,
        .icon-btn:hover {
            color: white;
            border: 1px solid white;
        }

        /* Typing cursor */
        .red-cursor {
            display: inline-block;
            width: 12px;
            height: 29px;
            background-color: #fc7c7c;
            margin-left: 5px;
            vertical-align: middle;
            animation: blinkRed 1s steps(2, start) infinite;
        }
        @keyframes blinkRed {
            0%, 50% { opacity: 1; }
            50.01%, 100% { opacity: 0; }
        }

        h1 {
            text-align: center;
            font-family: 'Silkscreen', cursive;
            font-weight: 700px; 
            font-size: 29px;
            color: white;
            margin-top: 40px;
        }
        .canvasred, .canvasblack, .canvaswhite, .canvasred2 {
            width: 240px;
            height: 240px;
            position: relative;
            background-color: transparent;
        }
        .trianglered, .triangleblack, .trianglewhite, .trianglered2 {
            position: absolute;
            width: 0;
            height: 0;
            animation: pulse1 5s ease-in-out infinite;
            transition: color 0.4s ease;
        }

        .trianglered {
            filter: drop-shadow(0 0 1px black);
        }
        .triangleblack {
            filter: drop-shadow(0 0 1px white);
            animation: pulse2 5s ease-in-out infinite;
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-bottom: 24px solid black;
        }
        .trianglewhite {
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-bottom: 24px solid white;
            filter: drop-shadow(0 0 4px red);
            animation: pulse2 5s ease-in-out infinite;
        }
        .trianglered2 {
            filter: drop-shadow(0 0 1px white);
            animation: pulse2 5s ease-in-out infinite;
        }

        @keyframes pulse1 {
            0%, 100% {
                transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
            }
            50% {
                transform: translate(calc(var(--x) * 0.6), calc(var(--y) * 0.6)) rotate(var(--r)) scale(1.1);
            }
        }

        @keyframes pulse2 {
            0%, 100% {
                transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
            }
            50% {
                transform: translate(calc(var(--x) * 0.6), calc(var(--y) * 0.6)) rotate(var(--r)) scale(1.1);
            }
        }

        .folder-list ul li {
            margin-bottom: 20px;
        }
        .folder-list ul li a {
            display: block;        
            padding: 0;
            margin: 0 !important;
            margin-bottom: 10px;
        }
        .folder-list ul {
            list-style: none;
            padding-left: 0; 
            margin-top: 5px !important;
            margin-bottom: 5px !important;
        }

/* BLOG LAYOUT */
.blog-layout {
    display: flex;
    gap: 40px;
    padding: 40px 60px;
}

/* SIDEBAR */
.blog-sidebar {
    width: 220px;
    border-right: 1px solid #333;
    padding-right: 20px;
}

.blog-sidebar h3 {
    font-family: "Candal", sans-serif;
    color: #fc7c7c;
    margin-bottom: 15px;
}

.tag-filters {
    list-style: none;
    padding: 0;
}

.tag-filters li {
    cursor: pointer;
    margin-bottom: 12px;
    font-family: 'Titillium Web', sans-serif;
    color: #aaa;
    transition: 0.3s ease;
}

.tag-filters li:hover,
.tag-filters li.active {
    color: #f5f5dc;
}

/* ARTICLE GRID */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    flex: 1;
}
/* ARTICLE CARD */
.article-card {
    background-color: #111;
    padding: 15px;
    box-shadow: 0 6px 12px white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px white;
}
.article-card img {
    width: 100%;
    display: block; /* SAME behavior as project cards */
}
.article-card h3 {
    margin: 1rem;
    font-family: "Candal", sans-serif;
    font-size: 24px;
    color: #fc7c7c;
    transition: color 0.3s ease;
}
.article-card:hover h3 {
    color: white;
}

.article-card p {
    margin: 0 1rem 1rem;
    font-family: 'Titillium Web', sans-serif;
    font-size: 18px;
    color: white;
}
/* TAGS */
.article-tags {
    margin: 0 1rem;
    font-family: 'Titillium Web', sans-serif;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.article-tags span {
    font-size: 15px;
    font-family: 'Titillium Web', sans-serif;
    color: #fc7c7c;
    border: 1px solid #fc7c7c;
    padding: 4px 10px;
    border-radius: 999px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .blog-layout {
        flex-direction: column;
        padding: 20px;
    }

    .blog-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        padding-bottom: 20px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}


        .topbar {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 9999;
            background: rgba(0,0,0,0.9);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 40px;
            box-sizing: border-box;
        }

        /* --- BACKGROUND WRAPPER FOR PROJECTS --- */
        /* 0% and 100% are black (to fade edges). 
           15% to 85% is completely transparent (rgba(0,0,0,0)) 
           to show the image underneath at full opacity. */
        .projects-bg-wrapper {
            position: relative;
            width: 100%;
            background: linear-gradient(to bottom, 
                #000 0%, 
                rgba(0,0,0,0) 15%, 
                rgba(0,0,0,0) 85%, 
                #000 100%
            ),
            url(styles/sky1.png);
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            padding-top: 30px;
            padding-bottom: 50px;
            margin-top: 30px;
        }


.work-link {
    color: #fc7c7c;
    text-decoration: none;
    transition: text-decoration-color 0.3s ease;
}

.work-link:hover {
    text-decoration: underline;
}
body {
  background-color: black;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  margin: 0;
  padding-top: 80px;
}
/* Text */
h1 {
  letter-spacing: 2px;
  color: white;
  position: relative;
  z-index: 2;
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-style: normal;
  margin-left: 50px;
  margin-top: 50px;
  font-size: 30px;
  text-shadow: 2px solid black;
}
h2 {
  font-weight: 700;
  font-size: 60px;
  color: white;
}
.text-content h2 {
  margin: 0 0 8px 0;
  font-size: 26px;
  color: white;
}
.text-contentblack {
  margin: 0 0 8px 0;
  color: white;
}
p {
  margin: 0;
  font-size: 20px;
  color: white;
  font-family: 'Titillium Web', sans-serif;
}
/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  z-index: 9999;
  padding-bottom: 10px;
  border-bottom: 1px solid red;
}
        .topbar .header {
            align-items: left;
            margin-left: 35px;
        }
        .topbar .menu {
            display: flex;
            gap: 10px;
            font-family: 'Overpass Mono', monospace;
            align-items: right;
            margin-right: 70px;
        }
        .topbar .menu a {
            color: white;
            text-decoration: none;
        }
        .topbar .menu span {
            color: red;
        }
.header a {
  text-decoration: none;
}

/* Menu */
.menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
  gap: 20px;
  font-size: 17px;
  font-weight: 700;
  background-attachment: fixed;
  font-family: 'Overpass Mono', monospace;
}
.menu a {
  text-decoration: none;
  color: white;
  font-weight: 400;
  font-size: 17px;
  background-attachment: fixed;
  transition: color 0.3s ease;
}
.menu a:hover {
  color: #fc7c7c !important;
  background-attachment: fixed;
}
.menu a.active {
  color: #fc7c7c !important;
}
.menu span {
  color: #fff;
  font-weight: 300;
  background-attachment: fixed;
}
/* Social icons */
.social-icons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  justify-content: center;
  z-index: 10;
}
.social-icons a {
  font-size: 34px;
  color: white;
  text-decoration: none;
  background-color: rgb(39, 39, 39);
  border-radius: 10px;
}
.social-icons a:hover {
  color: #fc7c7c;
}
/* Glitch animation */
.glitch-wrapper {
  position: relative;
  margin-bottom: 15px;
  text-align: center;
}
.small-glitch {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 38px;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px red;
  position: relative;
  z-index: 2;
  margin-top: 10px;
  margin-bottom: 5px;
  text-align: left;
}
.small-glitch::before,
.small-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0.8;
  clip-path: inset(0 0 100% 0);
}
.small-glitch::before {
  color: white;
  animation: glitchTop 2s infinite linear alternate-reverse;
}
.small-glitch::after {
  color: #fc7c7c;
  animation: glitchBottom 1.5s infinite linear alternate-reverse;
}
@keyframes glitchTop {
  0% { clip-path: inset(0 0 100% 0); }
  10% { clip-path: inset(0 0 75% 0); }
  20% { clip-path: inset(10% 0 65% 0); }
  40% { clip-path: inset(20% 0 50% 0); }
  60% { clip-path: inset(30% 0 30% 0); }
  80% { clip-path: inset(40% 0 20% 0); }
  100% { clip-path: inset(50% 0 0% 0); }
}
@keyframes glitchBottom {
  0% { clip-path: inset(50% 0 0% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(20% 0 30% 0); }
  60% { clip-path: inset(10% 0 50% 0); }
  80% { clip-path: inset(5% 0 60% 0); }
  100% { clip-path: inset(0% 0 100% 0); }
}
.glitch-wrapperhead {
  position: relative;
  margin-bottom: 10px;
  text-align: center;
}
.glitchhead {
  font-family: "UnifrakturMaguntia", cursive;
  font-size: 31px;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px red;
  position: relative;
  z-index: 2;
  margin-top: 13px;
  margin-bottom: 13px;
}
.scanline {
  position: relative;
  display: block;
  top: 0;
  left: 0;
  height: auto;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.scanline::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    rgba(255, 0, 0, 0.1) 1px,
    transparent 2px
  );
  animation: scan 2s linear infinite;
}
@keyframes scan {
  0% { top: -100%; }
  100% { top: 0%; }
}
.sparkle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.sparkle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: red;
  opacity: 0;
  border-radius: 50%;
  animation: flicker 1s infinite ease-in-out;
}
@keyframes flicker {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Center box */
.center-box {
  display: flex;
  justify-content: flex-start;
  background-color: black;
  border-radius: 15px;
  padding: 30px 40px;
  max-width: 895px;
  max-height: 540px;
  margin-top: 40px;
  margin-bottom: 20px;
  box-shadow: 0 0 22px red;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.center-box:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px red;
}
.center-box img {
  height: 460px;
  width: auto;
  padding-left: 20px;
  border-radius: 8px;
  object-fit: contain;
  margin-right: 15px;
}
.center-box p {
  font-size: 20px;
  flex: 1;
  max-width: 515px;
  color: white;
  word-wrap: break-word;
  font-family: 'Overpass Mono', monospace;
  text-align: left;
}

.hero-flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 30px;
}
/* Repo grid */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-left: 45px;
  margin-right: 45px;
  margin-top: 40px;
}
.repo-card {
  background-color: #111;
  border: 1px solid red;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 5px;
}
.repo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px red;
}
.repo-card > a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.repo-card h3 {
  margin: 1rem 1rem;
  font-size: 30px;
  font-family: "Candal", sans-serif;
  font-weight: 400;
  color: #fc7c7c;
  transition: color 0.3s ease;
  text-align: left;
}
.repo-card:hover h3 {
  color: white;
}
.repo-card p {
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 19px;
  font-family: 'Titillium Web', sans-serif;
  color: white;
}
.repo-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

    .folder-list ul {
      list-style: none;
      margin-right: 1em;
      margin-left: 1em;
    }
    .folder-list li {
      font-family: 'Overpass Mono', monospace;
      font-size: 18px;
      color: white;
    }
    .folder-list a {
      text-decoration: none;
      color: inherit;
      transition: color 0.3s ease;
    }
    .folder-list a:hover {
      color: #fc7c7c;
    }
    .folder-list i {
      margin-right: 0.5em;
      margin-left: 0.5em;
      color: white;
    }
    .folder-list li.break-before {
      margin-top: 2rem;
    }

/* Triangles */
.canvasred {
  width: 280px;
  height: 280px;
  position: relative;
  background-color: transparent;
}
.canvasblack {
  width: 280px;
  height: 280px;
  position: relative;
  background-color: transparent;
}
.canvaswhite {
  width: 280px;
  height: 280px;
  position: relative;
  background-color: transparent;
}
.canvasred2 {
  width: 280px;
  height: 280px;
  position: relative;
  background-color: transparent;
}
.trianglered {
  position: absolute;
  width: 0;
  height: 0;
  filter: drop-shadow(0 0 1px black);
  animation: pulse1 5s ease-in-out infinite;
  transition: color 0.4s ease;
}
.triangleblack {
  position: absolute;
  width: 0;
  height: 0;
  filter: drop-shadow(0 0 1px white);
  animation: pulse2 5s ease-in-out infinite;
  transition: color 0.4s ease;
}
.trianglewhite {
  position: absolute;
  width: 0;
  height: 0;
  filter: drop-shadow(0 0 1px red);
  animation: pulse2 5s ease-in-out infinite;
  transition: color 0.4s ease;
}
.trianglered2 {
  position: absolute;
  width: 0;
  height: 0;
  filter: drop-shadow(0 0 1px white);
  animation: pulse2 5s ease-in-out infinite;
  transition: color 0.4s ease;
}
@keyframes pulse1 {
  0%, 100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
  50% {
    transform: translate(calc(var(--x) * 0.6), calc(var(--y) * 0.6)) rotate(var(--r)) scale(1.1);
  }
}
@keyframes pulse2 {
  0%, 100% {
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
  }
  50% {
    transform: translate(calc(var(--x) * 0.6), calc(var(--y) * 0.6)) rotate(var(--r)) scale(1.1);
  }
}

/* Disable dragging and saving of images */
img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}
img::selection {
    background: transparent;
}
