
html, body {
  margin: 0;
  padding: 0;
  background-color: #f7f7f2; /* main page background */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
@font-face {
  font-family: "nasa";
  src: url("/nasafont.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background-color: #ffffff; /* header background */
}

.header-inner {
  padding: 0.75rem 1rem;
}

.site-name {
  color: #ff0000; /* header text color */
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 3px 3px 2px #401414;
  font-family: nasa;
}

.nav-dropdown-btn {
  background-color: #ff0000; /* nav dropdown button background */
  color: #ffffff; /* nav dropdown button text */
  font-weight: bold;
  font-family: nasa;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  box-shadow: 3px 3px 2px #401414;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn:focus {
  color: #ffffff; /* nav dropdown button text (hover/focus) */
  opacity: 0.9;
  background-color:#401414;
  box-shadow:3px 3px 2px #241616;
}

.site-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 100px;
  color: #ffffff; /* header text color */
  font-weight: 600;
}
.logo-img {
  max-height: 100px;
  display: block;
}

/* ============================================================
   PARALLAX SECTION
   ============================================================ */
.parallax-section {
  /* BLANK: PARALLAX_IMAGE_HERE - put your image url below */
  background-image: url("/earth.jpg");
  background-color: #000000; /* fallback color if no image is set */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* creates the parallax scroll effect */
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay {
  background-color: rgba(43, 45, 66, 0.55); /* tint over parallax image */
  color: #ffffff; /* text on top of parallax section */
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

/* On mobile, background-attachment: fixed can behave inconsistently,
   so it's disabled below ~768px for smoother scrolling. */
@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
  }
}


/* ============================================================
   BODY / SIDEBAR / CONTENT
   ============================================================ */
.page-body {
  padding: 0;
}

.sidebar-nav {
  background-color: #151d50; /* left sidebar background */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  min-height: 100%;
}

.nav-button {
  background-color: #ffffff; /* sidebar nav button background */
  color: #000000; /* sidebar nav button text */
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.nav-button:hover {
  background-color: #249494; /* sidebar nav button hover */
  color: #000000; /* sidebar nav button text */
}
.nav-icon {
  max-height: 24px;
  max-width: 24px;
}

.main-content {
  padding: 1.5rem;
}

.content-row {
  margin-bottom: 1.5rem;
}

.image-box {
  background-color: #151d50; /* image box placeholder background */
  border: 2px solid #93bde8; /* image box border */
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.content-img {
  max-width: 100%;
  max-height: 315px;
  display: block;
  background-color: transparent;
}
.box-fallback {
  position: absolute;
  color: #2b2d42; /* header text color, reused for fallback label */
  font-size: 1.1rem;
  font-weight: 600;
}

.text-box {
  background-color: #151d50; /* text box background */
  border: 2px solid #93bde8; /* text box border */
  color: #ffffff; /* text box text color */
  padding: 1.5rem;
  display: flex;
  align-items: center;
  font-family:nasa;
}
.text-links {
  color: #ffffff;
}
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: #151d50; /* footer background */
  color: #ffffff; /* footer text color */
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

.email-box .form-control {
  max-width: 320px;
}

.contact-btn {
  background-color: #131528; /* "Contact Me" button background */
  color: #ffffff; /* "Contact Me" button text */
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.contact-btn:hover {
  background-color: #151936; /* "Contact Me" button hover */
  color: #ffffff; /* "Contact Me" button text */
  box-shadow: 3px 3px 0px #1b225b;
}

/* ============================================================
   BIO PAGE — IMAGE / TEXT / IMAGE SECTIONS (hobbies & interests)
   ============================================================ */
.bio-section {
  margin-bottom: 1.5rem;
}
.bio-image-box {
  background-color: #151d50; /* matches main image box background */
  border: 2px solid #93bde8; /* matches main image box border */
  min-height: 220px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bio-image-box .content-img {
  max-width: 100%;
  max-height: 340px;
}
.bio-text-box {
  background-color: #151d50; /* matches main text box background */
  border: 2px solid #93bde8; /* matches main text box border */
  color: #ffffff; /* matches main text box text color */
  padding: 1.5rem;
  font-family: nasa;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bio-text-box h3 {
  margin-top: 0;
  color: #ff0000; /* matches header accent red */
}

/* ============================================================
   BIO PAGE — OPERATING SYSTEMS LIST BOX
   ============================================================ */
.os-list-box {
  background-color: #151d50; /* matches main text box background */
  border: 2px solid #93bde8; /* matches main text box border */
  color: #ffffff; /* matches main text box text color */
  padding: 1.5rem;
  font-family: nasa;
}
.os-list-box h3 {
  margin-top: 0;
  color: #ff0000; /* matches header accent red */
}
.os-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.os-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #93bde8; /* matches image/text box border */
}
.os-item:last-child {
  border-bottom: none;
}
.os-icon-box {
  background-color: #ffffff; /* OS icon box background */
  border: 2px solid #93bde8; /* matches image/text box border */
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.os-icon-box img {
  max-width: 100%;
  max-height: 100%;
}
.os-link {
  color: #ffffff; /* matches text-links color */
  text-decoration: none;
  font-weight: 600;
}
.os-link:hover {
  color: #249494; /* matches sidebar hover */
  text-decoration: underline;
}

/* ============================================================
   BIO PAGE — MUSIC GRID
   ============================================================ */
.music-card {
  background-color: #151d50; /* matches main text/image box background */
  border: 2px solid #93bde8; /* matches main text/image box border */
  padding: 1rem;
  text-align: center;
  height: 100%;
  font-family: nasa;
}
.album-cover-box {
  background-color: #ffffff; /* album cover placeholder background */
  border: 2px solid #93bde8; /* matches image/text box border */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.album-cover-box img {
  max-width: 100%;
  max-height: 100%;
}
.play-btn {
  background-color: #ff0000; /* matches header accent red */
  color: #ffffff; /* play button icon color */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0.25rem auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 2px #401414; /* matches header button shadow */
}
.play-btn:hover {
  background-color: #401414; /* matches nav-dropdown-btn hover */
}
.song-artist-name {
  color: #ffffff; /* artist name text color */
  font-weight: 700;
  margin: 0.25rem 0 0;
}
.song-title-name {
  color: #93bde8; /* song title text color, matches border accent */
  margin: 0;
  font-size: 0.9rem;
}

/* ============================================================
   BIO PAGE — SITE LINKS GRID (above footer)
   ============================================================ */
.site-link-card {
  background-color: #151d50; /* matches main text/image box background */
  border: 2px solid #93bde8; /* matches main text/image box border */
  padding: 1rem;
  text-align: center;
  height: 100%;
  font-family: nasa;
}
.site-link-logo-box {
  background-color: #ffffff; /* site logo spot background */
  border: 2px solid #93bde8; /* matches image/text box border */
  width: 60px;
  height: 60px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.site-link-logo-box img {
  max-width: 100%;
  max-height: 100%;
}
.site-link-name {
  color: #ffffff; /* linked site name text color */
  font-weight: 700;
  margin: 0.25rem 0;
}
.site-link-url {
  color: #93bde8; /* link box text color, matches border accent */
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
}
.site-link-url:hover {
  color: #249494; /* matches sidebar hover */
  text-decoration: underline;
}

/* ============================================================
   PROJECTS PAGE — PROJECT BOXES
   ============================================================ */
.project-box {
  background-color: #151d50; /* matches main text/image box background */
  border: 2px solid #93bde8; /* matches main text/image box border */
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: nasa;
}
.project-media {
  background-color: #ffffff; /* project media placeholder background */
  border: 2px solid #93bde8; /* matches image/text box border */
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.project-media img,
.project-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}
.project-title {
  color: #ff0000; /* matches header accent red */
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.project-desc {
  color: #ffffff; /* project description text color */
  margin: 0;
  flex-grow: 1;
}

/* ============================================================
   CRT
   ============================================================ */
#crt-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #000000; /* CRT boot screen color */
  pointer-events: none;
  overflow: hidden;
  /* opacity is now animated directly in crt-boot.js via requestAnimationFrame,
     so it increases in transparency smoothly instead of stepping through
     CSS keyframe percentages */
}

.crt-boot-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #cdeaff; /* CRT power-on line color */
  box-shadow: 0 0 20px 4px rgba(205, 234, 255, 0.9); /* CRT power-on line glow */
  transform: translateY(130%) scaleY(150);
  animation: crtBootLineExpand 0.85s ease-out forwards;
}

.crt-boot-flash {
  position: absolute;
  inset: 0;
  background-color: #ffffff; /* CRT flash color */
  opacity: 0;
  animation: crtBootFlash 1.4s ease-out forwards;
}

.crt-boot-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0px, /* CRT scanline brightness */
    rgba(255, 255, 255, 0.08) 1px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0;
  animation:
    crtBootScanlinesFade 12s ease-out forwards,
    crtBootScanlinesRoll 10s linear infinite;
}

@keyframes crtBootLineExpand {
  0%   { transform: translateY(-50%) scaleY(1); opacity: 1; }
    10%   { transform: translateY(-50%) scaleY(4); opacity: 1; }
      20%   { transform: translateY(-50%) scaleY(16); opacity: 1; }
        30%   { transform: translateY(-50%) scaleY(32); opacity: 1; }
          40%   { transform: translateY(-50%) scaleY(64); opacity: 1; }
            50%   { transform: translateY(-50%) scaleY(128); opacity: 1; }
              60%   { transform: translateY(-50%) scaleY(256); opacity: 1; }
                70%   { transform: translateY(-50%) scaleY(512); opacity: 1; }
                  80%   { transform: translateY(-50%) scaleY(1024); opacity: 1; }
                    90%   { transform: translateY(-50%) scaleY(2048); opacity: 1; }
                      100%   { transform: translateY(-50%) scaleY(4096); opacity: 1; }
                        120%   { transform: translateY(-50%) scaleY(8192); opacity: 1; }
                          130%   { transform: translateY(-50%) scaleY(16384); opacity: 1; }
}

@keyframes crtBootFlash {
  0%   { opacity: 0; }
  16%  { opacity: 0; }
  20%  { opacity: 0.9; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes crtBootScanlinesFade {
  0%   { opacity: 0; }
  18%  { opacity: 0; }
  22%  { opacity: 0.6; }
  70%  { opacity: 0.3; }
  100% { opacity: 0; }
  110% { opacity: 0;}
  120% { opacity: 0;}
  130% { opacity: 0;}
}

@keyframes crtBootScanlinesRoll {
  from { background-position: 0 0; }
  to   { background-position: 0 8px; }
}

/* Respect users who've asked for reduced motion */
@media (prefers-reduced-motion: reduce) {
  #crt-boot-overlay,
  .crt-boot-line,
  .crt-boot-flash,
  .crt-boot-scanlines {
    animation: none !important;
    opacity: 0 !important;
  }

}
  .crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% {
  opacity: 0.27861;
  }
  5% {
  opacity: 0.34769;
  }
  10% {
  opacity: 0.23604;
  }
  15% {
  opacity: 0.10626;
  }
  20% {
  opacity: 0.18128;
  }
  25% {
  opacity: 0.10626;
  }
  30% {
  opacity: 0.18128;
  }
  35% {
  opacity: 0.23604;
  }
}

  .crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% {
  opacity: 0.27861;
  }
  5% {
  opacity: 0.34769;
  }
  10% {
  opacity: 0.23604;
  }
  15% {
  opacity: 0.10626;
  }
  20% {
  opacity: 0.18128;
  }
  25% {
  opacity: 0.10626;
  }
  30% {
  opacity: 0.18128;
  }
  35% {
  opacity: 0.23604;
  }
}

.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

