/* ============================================
   CSS Variables & Reset
   ============================================ */
   :root {
    --bg: #000000;
    --fg: #ffffff;
    --accent: #FF6B2C;
    --accent-soft: rgba(255, 107, 44, 0.12);
    --accent-glow: rgba(255, 107, 44, 0.045);
    --accent-border: rgba(255, 107, 44, 0.18);
    --font: 'Inter', sans-serif;
  }
  
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
  }
  
  /* ============================================
     Scanline Overlay
     ============================================ */
  .scanlines {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 4px
    );
    opacity: 0.5;
  }
  

 /* quote
 
 */ 

 .ascii-quote {
  position: fixed;
  bottom: 2px;
  right: clamp(0px, 8vw, 0px);
  z-index: 2;
  font-size: clamp(0.3rem, 1.2vw, 3rem);
  font-weight: 300;
  color: rgba(255, 51, 0, 0.218);
  letter-spacing: -0.03em;
  max-width: 1000px;
  text-align: left;
  pointer-events: none;
}

  /* ============================================
     Grain Texture Overlay
     ============================================ */
  .grain {
    position: fixed;
    inset: 0;
    z-index: 8999;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
  }
  
  /* ============================================
     Cursor Glow
     ============================================ */
  #cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: opacity 0.4s;
    opacity: 0;
  }
  
  body:hover #cursor-glow {
    opacity: 1;
  }
  
  /* ============================================
     Cursor Circle
     ============================================ */
  #cursor-circle {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    pointer-events: none;
    border: 1.5px solid var(--accent-border);
    background: rgba(255, 107, 44, 0.05);
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: opacity 0.3s;
    opacity: 0;
  }
  
  body:hover #cursor-circle {
    opacity: 1;
  }
  
  /* ============================================
     Side Decorative Lines
     ============================================ */
  .side-line {
    position: fixed;
    top: 5%;
    height: 55%;
    width: 1px;
    z-index: 3;
    opacity: 0;
    animation: sideReveal 2s ease 1.2s forwards;
  }
  
  .side-line.left {
    left: 28px;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255, 107, 44, 0) 0px,
      rgba(255, 107, 44, 0) 0px,
      transparent 10px,
      transparent 12px
    );
  }
  
  .side-line.right {
    right: 28px;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255, 107, 44, 0) 0px,
      rgba(255, 107, 44, 0) 2px,
      transparent 2px,
      transparent 14px
    );
  }
  
  @keyframes sideReveal {
    to { opacity: 1; }
  }
  
  /* ============================================
     Blob Canvas
     ============================================ */
  #blob-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  
  /* ============================================
     Main Content — Split Layout
     ============================================ */
  main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    height: 65vh;
    padding: 0;
  }
  
  .left-panel {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding-left: clamp(48px, 8vw, 140px);
    padding-right: 40px;
  }
  
  .info {
    max-width: 520px;
    width: 100%;
    text-align: left;
  }
  
  /* ============================================
     Accent Line
     ============================================ */
  .accent-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 1.8em;
    animation: lineGrow 1.2s ease 0.3s forwards;
  }
  
  @keyframes lineGrow {
    to { width: 60px; }
  }
  
  /* ============================================
     Typography
     ============================================ */
  .name {
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 200;
    letter-spacing: -0.05em;
    line-height: 1.0;
    margin-bottom: 0.45em;
    color: var(--fg);
  }
  
  .tagline {
    font-size: clamp(0.82rem, 1.5vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.658);
    line-height: 1.0;
    margin-bottom: 0.5em;
  }
  
  .status {
    font-size: clamp(0.82rem, 1.5vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.675);
    line-height: 1.9;
    margin-bottom: 1.8em;
  }
  
  /* ============================================
     Links
     ============================================ */
  .links {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    margin-bottom: 2.4em;
  }
  
  .links.socials {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em 1.3em;
  }
  
  .links a {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: clamp(0.78rem, 1.3vw, 0.92rem);
    font-weight: 400;
    transition: color 0.25s ease, padding-left 0.25s ease;
    padding-bottom: 2px;
    cursor: none;
  }
  
  .links.projects a {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.25em 0;
  }
  
  .links.projects a:hover {
    color: var(--accent);
    padding-left: 4px;
  }
  
  .project-num {
    font-size: 0.7em;
    font-weight: 500;
    color: rgba(255, 107, 44, 0.4);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
  }
  
  .links.projects a:hover .project-num {
    color: var(--accent);
  }
  
  .links.socials a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
  }
  
  .links.socials a:hover {
    color: var(--accent);
  }
  
  .links.socials a:hover::after {
    width: 100%;
  }
  
  /* ============================================
     Meta Line (Location + Clock)
     ============================================ */
  .meta-line {
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.04em;
    margin-top: 0.6em;
    font-variant-numeric: tabular-nums;
  }
  
  .separator {
    color: rgba(255, 107, 44, 0.25);
  }
  
  /* ============================================
     Right Panel — Project Card
     ============================================ */
  .right-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 65vh;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
    pointer-events: none;
  }
  
  .right-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .panel-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s, color 0.25s;
    z-index: 201;
  }
  
  .panel-close:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  
  /* ============================================
     Project Card Layout
     ============================================ */
  .project-card {
    display: flex;
    width: 100%;
    max-width: 670px;
    height: 408px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(163, 253, 255, 0.094);
    background: rgba(29, 0, 0, 0.146);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .card-text {
    flex: 0 0 60%;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8em;
  }
  
  .card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: var(--accent);
    font-weight: 500;
  }
  
  .card-title {
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -0.05em;
    margin-bottom: 0.5em;
    color: var(--fg);
  }
  
  .card-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    margin-bottom: 0.5em;

  }
  
  .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-top: 0.4em;
  }
  
  .card-tags span {
    font-size: 0.65rem;
    padding: 0.2em 0.6em;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 44, 0.15);
    color: rgba(255, 107, 44, 0.6);
    letter-spacing: 0.03em;
    
  }
  
  .card-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
    margin-top: 0.4em;
    transition: opacity 0.25s;
    cursor: none;
    width: fit-content;
    margin-top: 0.5em;

  }
  
  .card-link:hover {
    opacity: 0.7;
  }
  
  .card-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
  }
  
  .card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(1);
    transform: scale(1.1);
    transition: transform 5s ease;
  }
  
  .project-card:hover .card-image::before {
    transform: scale(1.12);
  }
  
  /* Project images — stored in ./images/ folder */
  .card-image.citylens::before {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #FF6B2C 100%);
    background-image: url('./images/citylens.png');
    background-size: cover;
    background-position: center;
  }
  .card-image.aide::before {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 30%, #21262d 60%, #FF8C42 100%);
    background-image: url('./images/aide.png');
    background-size: cover;
    background-position: center;
  }
  .card-image.water::before {
    background: linear-gradient(135deg, #0a192f 0%, #112240 30%, #1d3557 60%, #e76f51 100%);
    background-image: url('./images/water.png');
    background-size: cover;
    background-position: center;
  }
  .card-image.beaverbreach::before {
    background: linear-gradient(135deg, #10002b 0%, #240046 30%, #3c096c 60%, #FF6B2C 100%);
    background-image: url('./images/beaverbreach.png');
    background-size: cover;
    background-position: center;
  }
  
  /* Overlay gradient for the image side */
  .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, transparent 100%);
  }
  
  /* ============================================
     Backdrop
     ============================================ */
  .backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  
  .backdrop.active {
    opacity: 1;
    pointer-events: auto;
    cursor: none;
  }
  
  /* ============================================
     Fade-in Animation
     ============================================ */
  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s ease forwards;
    animation-delay: var(--delay, 0s);
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ============================================
     ASCII Canvas
     ============================================ */
  #ascii-canvas {
    position: fixed;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 45vh;
    z-index: 1;
    pointer-events: auto;
    cursor: none;
  }
  
/* mode switch */

.mode-toggle {
  background: none;
  border: 0px solid rgba(255, 255, 255, 0.1);
  color: rgba(0, 0, 0, 0.0);
  font-size: 0rem;
  width: 0px;
  height: 0px;
  border-radius: 00%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.6em;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.mode-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   Light Mode
   ============================================ */
   body.light {
    background: #ffffff;
    color: #000000;
  }
  
  body.light .name {
    color: #000000;
  }
  
  body.light .tagline {
    color: rgb(0, 0, 0);
  }
  
  body.light .status {
    color: rgb(0, 0, 0);
  }
  
  body.light .links a {
    color: rgba(0, 0, 0, 0.626);
  }
  
  body.light .links.projects a:hover,
  body.light .links.socials a:hover {
    color: var(--accent);
  }
  
  body.light .project-num {
    color: rgb(255, 77, 0);
  }
  
  body.light .meta-line {
    color: rgba(0, 0, 0, 0.57);
  }
  
  body.light .mode-toggle {
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.511);
  }
  
  body.light .mode-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  
  body.light .scanlines {
    opacity: 0.05;
  }
  
  body.light .grain {
    opacity: 0.00;
  }
  
  body.light .accent-line {
    background: linear-gradient(90deg, var(--accent), transparent);
  }
  
  body.light .project-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
  }
  
  body.light .card-title {
    color: #1a1a1a;
  }
  
  body.light .card-desc {
    color: rgba(0, 0, 0, 0.5);
  }
  
  body.light .card-tags span {
    border-color: rgba(255, 107, 44, 0.25);
    color: rgba(255, 107, 44, 0.75);
  }
  
  body.light .backdrop {
    background: rgb(255, 255, 255);
  }
  
  body.light .ascii-quote {
    color: rgba(255, 89, 0, 0.15);
  }
  
  body.light #cursor-glow {
    background: radial-gradient(circle, rgba(255, 107, 44, 0.06) 0%, transparent 70%);
  }
  
  body.light #cursor-circle {
    border-color: rgba(255, 107, 44, 0.25);
    background: rgba(255, 107, 44, 0.06);
  }



  /* ============================================
     Mobile
     ============================================ */
  @media (max-width: 900px) {
    .right-panel {
      width: 80%;
    }
  }
  
  @media (max-width: 600px) {
    html, body { cursor: default; }
    .links a { cursor: default; }
    #ascii-canvas { cursor: default; }
    #cursor-circle, #cursor-glow { display: none; }
    .scanlines { display: none; }
    .panel-close { cursor: default; }
    .card-link { cursor: default; }
    .backdrop { cursor: default; }
  
    main {
      height: 58vh;
      padding: 0;
    }
  
    .left-panel {
      flex: 1;
      padding-left: 28px;
      padding-right: 24px;
      align-items: flex-start;
      padding-top: 14vh;
    }
  
    .right-panel {
      width: 92%;
      height: auto;
      top: 50%;
      transform: translateX(100%) translateY(-50%);
      padding: 20px;
    }
  
    .right-panel.open {
      transform: translateX(4%) translateY(-50%);
    }
  
    .project-card {
      flex-direction: column-reverse;
      height: auto;
      max-width: 100%;
    }
  
    .card-text {
      flex: none;
      padding: 24px 20px;
    }
  
    .card-image {
      flex: none;
      height: 120px;
    }
  
    .links { gap: 0.3em; }
    .links.socials { gap: 0.3em 1.1em; }
    .side-line.left  { left: 12px; }
    .side-line.right { right: 12px; }
    #ascii-canvas { height: 40vh; }
  }
  
  @media (max-width: 380px) {
    .name { font-size: 1.7rem; }
  }