@font-face {
  font-family: 'Hellix';
  src: url('./Hellix-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --padX: 72px;
  --padTop: 26px;
  --hair: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* LIGHT MODE GLSL SMOKE */
#light-webgl-bg {
  display: none;
}

/* CUSTOM CURSOR ORB */
body.dark-mode, body.blue-mode { cursor: none !important; }
body.dark-mode *, body.blue-mode * { cursor: none !important; }
#cursor-orb {
  display: none;
  position: fixed;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: left, top;
}
#cursor-glow {
  display: none;
  position: fixed;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.04) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999997;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: left, top;
}
body.dark-mode #cursor-orb, body.blue-mode #cursor-orb,
body.dark-mode #cursor-glow, body.blue-mode #cursor-glow { display: block; }
@media (hover: none) { #cursor-orb, #cursor-glow { display: none !important; } }

/* TAP RIPPLE (mobile) */
.tap-ripple {
  position: fixed;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99996;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.07) 50%, transparent 70%);
  mix-blend-mode: screen;
  animation: tapRippleAnim 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes tapRippleAnim {
  from { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* WEBGL CLOUD CANVAS */
#webgl-bg {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body.dark-mode #webgl-bg {
  display: block;
}

/* GRAIN TEXTURE OVERLAY */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.055;
  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-size: 180px 180px;
}

/* BIO REST - hidden until typewriter finishes */
.bio-rest {
  visibility: hidden;
}

/* TYPEWRITER CURSOR */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.type-cursor {
  animation: blink 0.7s step-end infinite;
  font-weight: 300;
  margin-left: 1px;
}

/* NOTEBOOK BACKGROUND */
body {
  margin: 0;
  font-family: 'Hellix', Arial, sans-serif;
  font-weight: 400;
  color: #000;
  background: repeating-linear-gradient(
    to bottom,
    #f6f5f1 0px,
    #f6f5f1 24px,
    rgba(0, 0, 0, 0.05) 25px
  );
}

/* Layout base */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* HEADER */
.topbar {
  padding: var(--padTop) var(--padX) 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Brand */
.brand {
  font-size: 20px;
  text-decoration: none;
  color: #000;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: filter 0.4s ease;
  transform-style: preserve-3d;
}
.brand.glow-active {
  text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 30px rgba(255,255,255,0.6), 0 0 60px rgba(180,210,255,0.35);
}
.brand.glow-resetting {
  transition: transform 0.65s cubic-bezier(0.23,1,0.32,1), text-shadow 0.5s ease;
}

/* Nav */
.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
}

.nav a:hover {
  color: #000;
}

/* Ring icon */
.sigil {
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.sigil__shape {
  width: 26px;
  height: 26px;
  display: inline-block;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.sigil__shape svg {
  width: 100%;
  height: 100%;
}

.book-icon {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Main layout */
.layout {
  padding: 10px var(--padX) 60px;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 90px;
}

/* SECTION LINKS */
.section-link {
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 17px;
  color: rgb(0, 0, 0);

  text-decoration: none;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 6px 0;
}

.left a {
  font-style: italic;
}

.section-link:hover {
  opacity: 0.6;
}

.left a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  font-size: 15px;
  line-height: 17px;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 6px 0;
  font-style: italic;
}

.left a:hover {
  opacity: 0.6;
}

/* Right bio */
.right {
  font-size: 13px;
  line-height: 21px;
}

.bio-image {
  text-align: center;
  margin-bottom: 20px;
}

.bio-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid #000;
}

.holo-wrap {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  clip-path: inset(0 round 8px);
  contain: paint;
  margin: 0 auto;
}
.holo-wrap img {
  display: block;
  width: 100%;
  will-change: transform;
  border-radius: 8px;
}
.holo-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: color-dodge;
  z-index: 1;
}
.holo-glare {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
  z-index: 2;
}

body.dark-mode .bio-image img {
  border: 3px solid #fff !important;
}

.bio a {
  color: #0066cc;
  text-decoration: none;
}

.bio a:hover {
  text-decoration: underline;
}

.bio {
  margin-bottom: 18px;
  font-family: 'Hellix', Arial, sans-serif;
  font-size: 13px;
  line-height: 21px;
}

/* Intent note */
.intentNote {
  text-align: center;
  margin: 50px auto 30px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Footer */
.footer {
  border-top: 1px solid var(--hair);
  padding: 18px var(--padX) 20px;
}

.footerRow {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: space-between;
}

/* Footer Message */
.footer-message {
  text-align: center;
  margin: 15px 0;
  font-size: 14px;
  color: #666;
}

.footer-message a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.footer-message a:hover {
  text-decoration: underline;
}

.footer-message {
  font-family: 'Hellix', Arial, sans-serif;
}

/* Footer Clock */
.footer-clock {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
}

.clock-time {
  font-size: 18px;
  font-weight: 400;
  color: #000;
  font-family: 'Hellix', Arial, sans-serif;
  margin-bottom: 4px;
}

.clock-message {
  font-size: 12px;
  color: #666;
  font-style: italic;
  font-family: 'Hellix', Arial, sans-serif;
}

/* REAL TRIPLE COMMA (3D Chrome via Three.js) */
@keyframes commaRotate {
  0%   { transform: perspective(300px) rotateY(0deg) rotateX(8deg); }
  100% { transform: perspective(300px) rotateY(360deg) rotateX(8deg); }
}

.triple-comma {
  font-family: "Wix Madefor Text", sans-serif;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -2px;
  display: inline-block;
  animation: commaRotate 12s linear infinite;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.25))
    drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  cursor: default;
  transform-style: preserve-3d;
  line-height: 1;
  vertical-align: middle;
}
.triple-comma canvas {
  display: block;
  pointer-events: none;
}
.topbar .triple-comma {
  display: flex;
  align-items: center;
  margin-left: -36px;
}

/* Social icons */
.social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socialLink {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
}

.socialLink svg {
  display: block;
  fill: rgb(0, 0, 0);
}

.socialLink:hover {
  border-color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 1);
}

/* Window Controls */
.window-controls {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  align-self: flex-end;
  flex-shrink: 0;
  z-index: 10;
  pointer-events: auto;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.window-control.close {
  background-color: #ff5f57;
}

.window-control.close:hover {
  background-color: #ff3b30;
}

.window-control.minimize {
  background-color: #ffbd2e;
}

.window-control.minimize:hover {
  background-color: #ff9500;
}

.window-control.maximize {
  background-color: #28ca42;
}

.window-control.maximize:hover {
  background-color: #00a832;
}


@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  animation: modalOverlayIn 0.3s ease both;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border: none;
  border-radius: 0;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  font-family: 'Hellix', Arial, sans-serif;
  position: relative;
  animation: modalSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.modal-content::-webkit-scrollbar-thumb {
  background: #000;
  border: 1px solid #fff;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #333;
}

.modal-body {
  padding: 0 40px 40px;
  font-family: 'Hellix', Arial, sans-serif;
  overflow-y: auto;
  flex: 1;
}

.modal-body h2 {
  margin: 0 0 30px 0;
  font-size: 20px;
  color: #000;
  font-weight: 400;
  font-family: 'Hellix', Arial, sans-serif;
}

.quotes-list {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.quotes-list div {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0 0 24px 0;
  border-bottom: none;
  outline: none;
  box-shadow: none;
}

.quotes-list h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #000;
  font-weight: 600;
  font-family: 'Hellix', Arial, sans-serif;
}

.quotes-list p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #000;
  line-height: 24px;
  font-family: 'Hellix', Arial, sans-serif;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.award-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 24px 0;
  transition: none;
}

.award-item:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.award-item h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #000;
  font-weight: 600;
  font-family: 'Hellix', Arial, sans-serif;
}

.award-item p {
  margin: 0;
  font-size: 14px;
  color: #000;
  line-height: 24px;
  font-family: 'Hellix', Arial, sans-serif;
}

.award-item a {
  color: #0066cc;
  text-decoration: none;
}

.award-item a:hover {
  text-decoration: underline;
}

/* Projects and Hackathons Modal Styles */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-category {
  margin-bottom: 30px;
}

.project-category h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #000;
  font-weight: 600;
  font-family: 'Hellix', Arial, sans-serif;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
}

.project-category::before {
  content: '';
  display: block;
  border-bottom: 2px solid #000;
  margin-bottom: 20px;
}

.project-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 30px 0;
  transition: none;
}

.project-item h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #000;
  font-weight: 600;
  font-family: 'Hellix', Arial, sans-serif;
}

.project-item p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #000;
  line-height: 24px;
  font-family: 'Hellix', Arial, sans-serif;
}

.project-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #000;
  margin: 0 auto 16px auto;
  display: block;
}

.project-item a {
  color: #0066cc;
  text-decoration: none;
}

.project-item a:hover {
  text-decoration: underline;
}

/* Thoughts and Writings Modal Styles */
.thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thought-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 30px 0;
  transition: none;
}

.thought-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #000;
  margin: 0 auto 16px auto;
  display: block;
}

.thought-item h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #000;
  font-weight: 600;
  font-family: 'Hellix', Arial, sans-serif;
}


.thought-subtitle {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-style: italic;
  font-family: 'Hellix', Arial, sans-serif;
}

.project-images-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

.project-images-row img {
  width: auto;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #000;
  display: block;
  transition: transform 0.2s ease;
}

.project-images-row img:hover {
  transform: scale(1.05);
}

/* Movies and Books Modal Styles */
.movies-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.movies-categories {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  align-items: flex-start;
}

.movie-category {
  flex: 1;
}

.movie-category h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #000;
  font-weight: 600;
  font-family: 'Hellix', Arial, sans-serif;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
}

.movie-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.movie-item {
  margin: 0;
}

.movie-item a {
  color: #0066cc;
  text-decoration: none;
  font-size: 15px;
  font-family: 'Hellix', Arial, sans-serif;
  line-height: 24px;
}

.movie-item a:hover {
  text-decoration: underline;
}

.movie-note {
  font-size: 13px;
  color: #666;
  font-style: italic;
  font-family: 'Hellix', Arial, sans-serif;
  margin-left: 4px;
}

.books-section {
  margin-top: 20px;
}

.books-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #000;
  font-weight: 600;
  font-family: 'Hellix', Arial, sans-serif;
  border-bottom: 2px solid #000;
  padding-bottom: 8px;
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-item {
  margin: 0;
}

.book-item p {
  margin: 0;
  font-size: 15px;
  font-family: 'Hellix', Arial, sans-serif;
  line-height: 24px;
  color: #000;
}

/* Image Modal Styles */
.image-modal-content {
  background-color: white;
  padding: 0;
}

.image-modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.image-modal-body img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  margin: 0;
}

/* Mobile */
@media (max-width: 860px) {
  :root {
    --padX: 22px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nav {
    display: flex;
    gap: 12px;
    font-size: 12px;
  }

  .topbar {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .sigil {
    margin-left: auto;
  }

  .bio-image {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .bio-image .holo-wrap {
    width: 80% !important;
    max-width: 450px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .bio-image .holo-wrap img {
    width: 100% !important;
  }

  .bio {
    font-size: 14px;
    line-height: 22px;
  }
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
  .modal {
    align-items: flex-end;
  }
  .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 88vh;
    padding: 0;
    border-radius: 18px 18px 0 0;
    border-bottom: none !important;
    animation: modalSheetIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .modal-body {
    padding: 0 20px 20px;
  }
  @keyframes modalSheetIn {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .modal-body h2 {
    font-size: 20px;
  }
  
  .awards-list {
    gap: 12px;
  }
  
  .award-item {
    padding: 0;
  }
  
  .award-item h3 {
    font-size: 15px;
  }
  
  .award-item p {
    font-size: 13px;
  }
  
  .movies-categories {
    flex-direction: column;
    gap: 30px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  :root {
    --padX: 16px;
    --padTop: 16px;
  }

  .page {
    min-height: 100vh;
    overflow-x: hidden;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: var(--padTop) var(--padX) 10px;
    justify-content: space-between;
  }

  .brand {
    font-size: 18px;
    order: 1;
  }

  .nav {
    display: flex;
    gap: 8px;
    font-size: 11px;
    order: 3;
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .sigil {
    order: 2;
    margin-left: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px var(--padX) 40px;
  }

  .bio-image {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .bio-image .holo-wrap {
    width: 90% !important;
    max-width: 400px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .bio-image .holo-wrap img {
    width: 100% !important;
  }

  .bio {
    font-size: 13px;
    line-height: 20px;
  }

  .footerRow {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 18px var(--padX) 30px;
  }

  .footer .nav {
    text-align: center;
    margin: 15px 0;
    display: block !important;
    margin-left: 0 !important;
    gap: 0 !important;
  }

  .footer .nav a {
    margin: 0 8px;
    display: inline-block;
  }
}

/* Book Icon Styles */
.book-icon {
  font-size: 18px;
  line-height: 1;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.dark-mode-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: none;
  border-radius: 0;
  background: transparent !important;
}

.dark-mode-icon svg {
  width: 100%;
  height: 100%;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #050507 !important;
  color: #e8f4f8 !important;
}

body.dark-mode .page {
  background: transparent !important;
  position: relative;
  z-index: 2;
}

body.dark-mode .brand {
  color: #fff !important;
}

body.dark-mode .nav a {
  color: #ccc !important;
}

body.dark-mode .nav a:hover {
  color: #fff !important;
}

body.dark-mode .section-link {
  color: #fff !important;
}

body.dark-mode .bio {
  color: #fff !important;
}

body.dark-mode .bio a {
  color: #4fc3f7 !important;
}

body.dark-mode .bio a:hover {
  color: #81d4fa !important;
}

body.dark-mode .sigil__shape svg {
  stroke: #fff !important;
}

body.dark-mode .dark-mode-icon svg {
  stroke: #fff !important;
}

body.dark-mode .modal-content {
  background: linear-gradient(160deg, rgba(14,14,22,0.40) 0%, rgba(6,6,12,0.50) 100%) !important;
  backdrop-filter: blur(36px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.8) !important;
  color: #e8f4f8 !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-top: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12) !important;
}
body.blue-mode .modal-content {
  background: linear-gradient(160deg, rgba(20,20,50,0.22) 0%, rgba(10,10,35,0.28) 100%) !important;
  backdrop-filter: blur(42px) saturate(1.9) !important;
  -webkit-backdrop-filter: blur(42px) saturate(1.9) !important;
  color: #e8f4f8 !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-top: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

body.dark-mode .window-control.close {
  background: #f44336 !important;
}

body.dark-mode .window-control.maximize {
  background: #4caf50 !important;
}

body.dark-mode .modal-body h2,
body.blue-mode .modal-body h2 {
  color: #fff !important;
}

body.dark-mode .modal-body h3,
body.blue-mode .modal-body h3 {
  color: #fff !important;
}

body.dark-mode .modal-body p,
body.blue-mode .modal-body p {
  color: #fff !important;
}

body.dark-mode .thought-item a,
body.dark-mode .project-item a,
body.dark-mode .award-item a,
body.dark-mode .movie-item a,
body.dark-mode .book-item a {
  color: #4fc3f7 !important;
}

body.dark-mode .thought-item a:hover,
body.dark-mode .project-item a:hover,
body.dark-mode .award-item a:hover,
body.dark-mode .movie-item a:hover,
body.dark-mode .book-item a:hover {
  color: #81d4fa !important;
}

body.dark-mode .thought-item p,
body.dark-mode .project-item p,
body.dark-mode .award-item p,
body.dark-mode .movie-item p,
body.dark-mode .book-item p {
  color: #fff !important;
}

body.dark-mode .thought-item h3,
body.dark-mode .project-item h3,
body.dark-mode .award-item h3,
body.dark-mode .movie-item h3,
body.dark-mode .book-item h3 {
  color: #fff !important;
}

body.dark-mode .form-group label,
body.blue-mode .form-group label {
  color: #fff !important;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
  background: #2a2a2a !important;
  color: #fff !important;
  border-color: #555 !important;
}
body.blue-mode .form-group input,
body.blue-mode .form-group select,
body.blue-mode .form-group textarea {
  background: rgba(255,255,255,0.92) !important;
  color: #111 !important;
  border-color: rgba(255,255,255,0.4) !important;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #4fc3f7 !important;
}

body.dark-mode .send-button {
  background: #fff !important;
  color: #000 !important;
}

body.dark-mode .send-button:hover {
  background: #ccc !important;
}

body.dark-mode .success-message,
body.blue-mode .success-message {
  background: rgba(40,202,66,0.15) !important;
  border-color: #28ca42 !important;
  color: #fff !important;
}

body.dark-mode .footer-message {
  color: #fff !important;
}

body.dark-mode .footer-message a {
  color: #4fc3f7 !important;
}

body.dark-mode .footer-message a:hover {
  color: #81d4fa !important;
}

body.dark-mode .footer-clock {
  border-top-color: #333 !important;
}

body.dark-mode .clock-time {
  color: #fff !important;
}

body.dark-mode .clock-message {
  color: #ccc !important;
}

body.dark-mode .intentNote {
  color: #fff !important;
}

body.dark-mode .intentNote a {
  color: #4fc3f7 !important;
}

body.dark-mode .intentNote a:hover {
  color: #81d4fa !important;
}

body.dark-mode .triple-comma {
  color: #fff !important;
}

body.dark-mode .footerRow span {
  color: #fff !important;
}

body.dark-mode .layout {
  background: transparent !important;
}

body.dark-mode main {
  background: transparent !important;
}

body.dark-mode .left {
  background: transparent !important;
}

body.dark-mode .right {
  background: transparent !important;
}

body.dark-mode img {
  border: 2px solid #fff !important;
}

body.dark-mode .bio-image img {
  border: 2px solid #fff !important;
}

body.dark-mode .thought-item img,
body.dark-mode .project-item img,
body.dark-mode .award-item img,
body.dark-mode .movie-item img,
body.dark-mode .book-item img {
  border: 2px solid #fff !important;
}

body.dark-mode .section-link {
  color: #fff !important;
}

body.dark-mode .section-link:hover {
  color: #ccc !important;
}

body.dark-mode .sigil__shape svg {
  stroke: #fff !important;
}

body.dark-mode .dark-mode-icon svg {
  stroke: #fff !important;
}

body.dark-mode .dark-mode-toggle {
  background: transparent !important;
}

body.dark-mode .sigil {
  background: transparent !important;
}

body.dark-mode .modal-body h3 {
  color: #fff !important;
}

body.dark-mode .hackathon-item h4 {
  color: #fff !important;
}

body.dark-mode .hackathon-item p {
  color: #fff !important;
}

body.dark-mode * {
  border-color: #555 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #fff !important;
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode div {
  color: #fff !important;
}

body.dark-mode a {
  color: #4fc3f7 !important;
}

body.dark-mode a:hover {
  color: #81d4fa !important;
}

body.dark-mode button {
  color: #fff !important;
  border-color: #fff !important;
}

body.dark-mode .window-control {
  border: none !important;
}

body.dark-mode .sigil__shape svg path {
  stroke: #fff !important;
}

body.dark-mode .dark-mode-icon svg path {
  stroke: #fff !important;
}

body.dark-mode .sigil__shape svg {
  stroke: #fff !important;
}

body.dark-mode .dark-mode-icon svg {
  stroke: #fff !important;
}

/* Recommendation Form Styles */
.recommend-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 15px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #000;
  font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  font-family: 'Hellix', Arial, sans-serif;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
  margin-top: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
  font-family: 'Hellix', Arial, sans-serif;
  line-height: 1.5;
}

.send-button {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Hellix', Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}

.send-button:hover {
  background: #333;
}

.success-message {
  background: #e8f5e8;
  border: 1px solid #4caf50;
  border-radius: 4px;
  padding: 16px;
  margin-top: 20px;
  text-align: center;
  color: #2e7d32;
}

.success-message p {
  margin: 0;
  font-weight: 500;
}

/* =====================
   BLUE MODE (daytime)
   Same structure as dark-mode but blue GLSL smoke
   ===================== */
body.blue-mode {
  background: #020204 !important;
  color: #e8f4f8 !important;
}
body.blue-mode #light-webgl-bg {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body.blue-mode .page {
  background: transparent !important;
  position: relative;
  z-index: 2;
}
body.blue-mode .layout,
body.blue-mode main,
body.blue-mode .left,
body.blue-mode .right {
  background: transparent !important;
}
body.blue-mode .brand { color: #fff !important; }
body.blue-mode .nav a { color: #ccc !important; }
body.blue-mode .nav a:hover { color: #fff !important; }
body.blue-mode .bio { color: #fff !important; }
body.blue-mode .bio a { color: #4fc3f7 !important; }
body.blue-mode p, body.blue-mode span { color: #e8f4f8 !important; }
body.blue-mode h1, body.blue-mode h2, body.blue-mode h3,
body.blue-mode h4, body.blue-mode h5, body.blue-mode h6 { color: #fff !important; }
body.blue-mode a { color: #4fc3f7 !important; }
body.blue-mode .triple-comma { color: #fff !important; }
body.blue-mode .sigil__shape svg path { stroke: #fff !important; }
body.blue-mode button { color: #fff !important; }
body.blue-mode .section-link { color: #fff !important; }
body.blue-mode img { border: 2px solid rgba(255,255,255,0.3) !important; }
body.blue-mode .footerRow span { color: #fff !important; }
body.blue-mode .footer-message { color: #fff !important; }
body.blue-mode .footer-message a { color: #4fc3f7 !important; }
body.blue-mode .clock-time { color: #fff !important; }
body.blue-mode .clock-message { color: #ccc !important; }
body.blue-mode .intentNote { color: #fff !important; }

/* COMMAND PALETTE */
#cmd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
}
#cmd-overlay.open { display: flex; }
#cmd-box {
  width: 540px;
  max-width: 92vw;
  background: rgba(14,14,20,0.97);
  border: 1px solid rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  animation: cmdIn 0.15s cubic-bezier(0.23,1,0.32,1);
}
@keyframes cmdIn {
  from { opacity:0; transform: scale(0.96) translateY(-8px); }
  to   { opacity:1; transform: scale(1)    translateY(0);    }
}
#cmd-input-wrap {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 10px;
}
#cmd-input-wrap svg { opacity: 0.4; flex-shrink: 0; }
#cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  padding: 18px 0;
  caret-color: rgba(255,255,255,0.7);
}
#cmd-input::placeholder { color: rgba(255,255,255,0.28); }
#cmd-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 0 10px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  transition: background 0.1s, color 0.1s;
  border-radius: 0;
}
.cmd-item:hover, .cmd-item.active {
  background: rgba(255,255,255,0.07);
  color: #fff;
}
.cmd-item-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 7px;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.cmd-item-label { flex: 1; }
.cmd-item-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}
.cmd-empty {
  padding: 24px 18px;
  color: rgba(255,255,255,0.3);
  font-size: 0.88rem;
  text-align: center;
}
#cmd-footer {
  display: flex;
  gap: 16px;
  padding: 8px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.22);
  font-size: 0.72rem;
}
#cmd-footer kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}
