:root {
  --blue: #0052FF;
  --white: #fff;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--blue);
  color: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

h1.hero-title {
  margin: 0;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.075em;
  text-align: center;
  color: white;
  cursor: default;
  transition: filter .35s ease, transform .35s ease;
  -webkit-tap-highlight-color: transparent;
}

h1.hero-title span {
  display: inline-block;
  padding: 0.2em 0.1em;
  margin: -0.2em -0.1em;
  color: white;
  background-image: linear-gradient(
    105deg,
    #fff 0%,
    #fff 22%,
    #b7f7ff 30%,
    #d9b7ff 39%,
    #ffb9df 47%,
    #fff2b8 55%,
    #a9f8e7 64%,
    #c8d4ff 73%,
    #fff 82%,
    #fff 100%
  );
  background-size: 240% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position .8s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}

h1.hero-title:hover span,
h1.hero-title:focus-visible span {
  background-position: 100% 50%;
  filter: drop-shadow(0 0 12px rgba(207, 238, 255, .35));
}

h1.hero-title:hover,
h1.hero-title:focus-visible {
  transform: scale(1.015);
}

h1.hero-title:focus-visible {
  outline: none;
}

/* Page Containers (Projects & Blog) */
.page-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 100svh;
}

.page-header {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.2;
}

.page-header span {
  background-image: linear-gradient(105deg, #fff 0%, #b7f7ff 50%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.2em 0.1em;
  margin: -0.2em -0.1em;
  display: inline-block;
}
  
.card-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.card {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 24px;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

.card-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.card-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

.post-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Blog Post Content */
.post-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: 80px;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content a {
  color: #b7f7ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 247, 255, 0.3);
  transition: border-color 0.2s;
}

.post-content a:hover {
  border-bottom-color: #b7f7ff;
}

.post-content strong {
  color: #fff;
}

.post-content figure {
  margin: 2.5rem 0;
  text-align: center;
}

.post-content img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

.post-content figcaption {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.75rem;
}

/* Menu Styles */
.menu-wrap {
  position: fixed;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(20px, 4vw, 48px);
  z-index: 5;
}

.menu-toggle {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: transparent;
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover,
.menu-wrap.open .menu-toggle {
  background: white;
  color: var(--blue);
}

.menu-toggle:focus-visible,
.menu a:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
}

.symbol {
  font-size: 25px;
  line-height: 1;
  font-weight: 200;
  transition: transform .25s ease;
}

.menu-wrap.open .symbol { transform: rotate(45deg); }

.menu {
  position: absolute;
  right: 0;
  bottom: 70px;
  display: grid;
  gap: 13px;
  min-width: 150px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.65);
  background: var(--blue);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  text-align: right;
}

.menu-wrap:hover .menu,
.menu-wrap:focus-within .menu,
.menu-wrap.open .menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: opacity .2s ease;
}

.menu a:hover { opacity: .6; }

/* 404 Styles */
.error-text {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

@media (max-width: 520px) {
  .menu-toggle { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;  
  }
}
