* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #061b2d;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #d9f7ff;
  font-family: "Courier New", monospace;
  background:
    radial-gradient(circle at 20% 10%, rgba(30, 130, 170, 0.22), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(20, 100, 160, 0.18), transparent 35%),
    linear-gradient(#082b46 0%, #041a2b 55%, #02111e 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px);
  z-index: 1;
}

a {
  color: #7de9ff;
  text-decoration: underline;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px #61dfff;
}

.top-site {
  position: relative;
  z-index: 10;
  width: min(1100px, calc(100% - 24px));
  margin: 18px auto 0;
  padding: 10px;
  background: #062239;
  border: 4px ridge #6bbbd0;
  box-shadow: 6px 6px 0 #010a12;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
  font-size: clamp(20px, 4vw, 34px);
  font-weight: bold;
  text-shadow: 3px 3px #062239, 0 0 9px #4edfff;
  padding: 7px;
}

.logo-fish {
  font-size: 24px;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.nav a {
  display: inline-block;
  padding: 7px 13px;
  color: #dffaff;
  background: #0b3c5d;
  border: 3px outset #6bbbd0;
  text-decoration: none;
  font-weight: bold;
}

.nav a:hover {
  background: #146185;
}

.page {
  position: relative;
  z-index: 5;
  width: min(1100px, calc(100% - 24px));
  margin: 20px auto;
}

.window {
  margin: 0 0 20px;
  background: rgba(3, 26, 42, 0.94);
  border: 4px ridge #6bbbd0;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .55);
}

.window-bar {
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(90deg, #0b4e70, #126c91);
  border-bottom: 4px ridge #6bbbd0;
  font-weight: bold;
}

.window-content {
  padding: 22px;
}

.center {
  text-align: center;
}

h1, h2, h3 {
  color: #fff;
  text-shadow: 2px 2px #0a4b68;
}

h1 {
  font-size: clamp(30px, 6vw, 58px);
  margin: 10px 0;
}

h2 {
  margin-top: 0;
}

p {
  line-height: 1.65;
}

.big-text {
  font-size: 21px;
}

.fish-art {
  margin: 5px auto 10px;
  font-size: 38px;
  color: #83efff;
  text-shadow: 0 0 12px #35dfff;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pixel-button {
  display: inline-block;
  padding: 9px 14px;
  color: white;
  background: #0d5274;
  border: 3px outset #8bd4e3;
  text-decoration: none;
  font-weight: bold;
}

.pixel-button:hover {
  color: white;
  background: #176f94;
  text-shadow: none;
}

.hint {
  color: #8eb9c4;
  font-size: 13px;
}

code {
  padding: 2px 5px;
  background: #00111d;
  border: 1px solid #39748a;
  color: #a9f4ff;
}

.about-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}

.about-picture img {
  display: block;
  width: 100%;
  border: 4px ridge #6bbbd0;
  background: #021521;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.project-card {
  background: #062238;
  border: 4px ridge #4e9bb0;
  box-shadow: 4px 4px 0 #010a12;
  overflow: hidden;
}

.project-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 4px ridge #4e9bb0;
  background: #031623;
}

.project-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74b8c7;
}

.project-card-body {
  padding: 15px;
}

.project-card h2 {
  font-size: 21px;
}

.project-card p {
  min-height: 52px;
}

.project-detail-image {
  display: block;
  max-width: min(100%, 700px);
  max-height: 500px;
  margin: 18px 0;
  border: 4px ridge #6bbbd0;
}

.project-description {
  font-size: 18px;
}

.project-content {
  margin-top: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
}

.contact-box {
  margin-top: 18px;
  padding: 15px;
  background: #061e31;
  border: 3px ridge #4e9bb0;
}

.contact-box iframe {
  display: block;
  max-width: 100%;
}

.empty {
  padding: 30px;
  border: 3px dashed #4e9bb0;
  text-align: center;
}

footer {
  position: relative;
  z-index: 5;
  width: min(1100px, calc(100% - 24px));
  margin: 30px auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  color: #82adba;
  border-top: 2px dotted #4e8797;
  font-size: 12px;
}

.bubbles {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -30px;
  display: block;
  border: 1px solid rgba(180, 245, 255, .75);
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.6);
  animation: floatBubble linear forwards;
}

@keyframes floatBubble {
  0% {
    transform: translate(0, 0) scale(.7);
    opacity: 0;
  }
  10% {
    opacity: .8;
  }
  50% {
    transform: translate(15px, -50vh) scale(1);
  }
  100% {
    transform: translate(-20px, -115vh) scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 650px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-picture {
    max-width: 260px;
  }

  .window-content {
    padding: 15px;
  }

  .site-logo {
    font-size: 23px;
  }
}
