/* base */

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: "Press Start 2P", cursive;
  background: linear-gradient(180deg, #5c94fc 0%, #7eb6ff 60%, #a8d0ff 100%);
  min-height: 100vh;
  margin: 0;
  padding-bottom: 100px;
  position: relative;
}

/* clouds - infinite css animation (advanced content #3) */

.cloud {
  position: fixed;
  background: #fff;
  border-radius: 60px;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    25px 0 0 0 #fff,
    50px -10px 0 0 #fff,
    20px -20px 0 0 #fff,
    -20px 0 0 0 #fff;
}

.cloud-1 { width: 60px; height: 24px; top: 80px;  left: -120px; animation: drift 60s linear infinite; }
.cloud-2 { width: 80px; height: 30px; top: 180px; left: -160px; animation: drift 90s linear infinite 10s; }
.cloud-3 { width: 50px; height: 20px; top: 260px; left: -100px; animation: drift 75s linear infinite 25s; }
.cloud-4 { width: 70px; height: 26px; top: 360px; left: -140px; animation: drift 100s linear infinite 40s; }

@keyframes drift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

/* navbar */

.sky-nav {
  background: rgba(0, 0, 0, 0.65);
  border-bottom: 4px solid #000;
  position: relative;
  z-index: 10;
}

.sky-nav .navbar-brand {
  font-family: "Press Start 2P", cursive;
  color: #ffd700 !important;
  font-size: 14px;
}

.sky-nav .nav-link {
  font-family: "Press Start 2P", cursive;
  color: #fff !important;
  font-size: 11px;
  padding: 10px 14px !important;
}

.sky-nav .nav-link:hover {
  color: #ffd700 !important;
}

.sky-nav .navbar-toggler {
  border: 2px solid #fff;
}

.sky-nav .navbar-toggler-icon {
  filter: invert(1);
}

/* main */

main {
  position: relative;
  z-index: 5;
}

.page-title {
  font-size: 22px;
  text-align: center;
  color: #fff;
  text-shadow: 3px 3px 0 #000;
  margin: 30px 0 30px 0;
}

.section-title {
  font-size: 16px;
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 20px;
}

/* hero / reflection card */

.hero-card {
  background-color: #fff !important;
  padding-top: 24px !important;
}

/* shared card heading - title sits inside the box, border stays unbroken */
.card-heading {
  font-family: "Press Start 2P", cursive;
  font-size: 14px;
  color: #209cee;
  margin: 0 0 16px 0;
  text-align: center;
  letter-spacing: 1px;
}

.card-heading.dark {
  color: #ffd700;
}

.reflection {
  font-size: 11px;
  line-height: 2;
  margin: 0;
}

/* quote card */

.quote-card {
  text-align: center;
  padding-top: 24px !important;
}

.quote-text {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.quote-author {
  font-size: 10px;
  color: #ffd700;
  margin-bottom: 16px;
  min-height: 14px;
}

/* project grid */

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.project-card {
  background-color: #fff !important;
  height: 100%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-title {
  font-size: 12px;
  color: #209cee;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 9px;
  line-height: 1.6;
  margin: 0;
  color: #333;
}

/* irl portfolio shoutout - compact one-liner with border */

.irl-card {
  background-color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
  padding: 16px 20px !important;
}

.irl-text {
  font-size: 10px;
  color: #000;
}

.irl-btn {
  font-family: "Press Start 2P", cursive !important;
  font-size: 10px !important;
  text-decoration: none !important;
}

/* mario embed */

.mario-card {
  background-color: #fff !important;
  text-align: center;
  padding-top: 24px !important;
}

.mario-preview {
  width: 100%;
  height: 520px;
  border: 4px solid #000;
  pointer-events: none;
  display: block;
  margin: 0 auto 10px auto;
}

/* mario needs a keyboard so hide the whole bonus on mobile */
@media (max-width: 768px) {
  #mario { display: none; }
  .navbar-nav .nav-item:has(a[href="#mario"]) { display: none; }
}

.mario-caption {
  font-size: 9px;
  margin: 0;
}

.mario-launch {
  color: #209cee;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}

.mario-fullscreen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
}

.mario-fullscreen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.mario-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
  font-family: "Press Start 2P", cursive;
}

/* mario-style brick floor */

.bricks {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background:
    linear-gradient(90deg, #000 2px, transparent 2px) 0 0 / 60px 30px,
    linear-gradient(90deg, #000 2px, transparent 2px) 30px 30px / 60px 30px,
    linear-gradient(0deg,  #000 2px, transparent 2px) 0 0 / 60px 30px,
    #c84c0c;
  border-top: 4px solid #000;
  z-index: 1;
  pointer-events: none;
}

/* footer */

footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 20px 10px 80px 10px;
}

footer p {
  font-size: 9px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin: 0;
}

/* responsive */

@media (max-width: 480px) {
  .page-title { font-size: 14px; }
  .section-title { font-size: 12px; }
  .reflection { font-size: 9px; }
  .quote-text { font-size: 10px; }
  .project-title { font-size: 10px; }
  .project-desc { font-size: 8px; }
  .sky-nav .navbar-brand { font-size: 11px; }
}
