/* ===========================================================
   OfflineRocket — shared styles for Home / About / Contact /
   Drifts / Digital Legacy.  Theme: "Frosted Aqua" (Y2K).
   Brand pair: cyan + orange, used over frosted-white glass.
   =========================================================== */

:root {
  --ink: #1b2330;
  --ink-soft: #46566a;
  --cyan: #19d3e6;
  --cyan-glass: rgba(170, 245, 255, 0.55);
  --cyan-glass-hover: rgba(120, 240, 255, 0.85);
  --orange: #ff7a1a;
  --orange-glass: rgba(255, 122, 26, 0.70);
  --orange-glass-hover: rgba(255, 122, 26, 0.86);
  /* translucent gel fills — subtle gradient + sheen. The border + shadow
     (not opacity) make them pop, so they stay glassy. */
  --cyan-gel: linear-gradient(180deg, rgba(192, 248, 255, 0.60), rgba(72, 212, 233, 0.58));
  --cyan-gel-hover: linear-gradient(180deg, rgba(202, 250, 255, 0.74), rgba(58, 202, 226, 0.72));
  --orange-gel: linear-gradient(180deg, rgba(255, 170, 95, 0.64), rgba(247, 126, 32, 0.62));
  --orange-gel-hover: linear-gradient(180deg, rgba(255, 184, 110, 0.80), rgba(236, 110, 18, 0.78));
  --gel-sheen: inset 0 1px 0 rgba(255, 255, 255, 0.70);
  --frost: rgba(255, 255, 255, 0.64);
  --frost-card: rgba(255, 255, 255, 0.55);
  --link: #0a7ea4;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100vh;
  overflow-y: scroll;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  margin: auto;
  padding: 0 0 40px;
  min-height: 100vh;
  max-width: 1600px;
  background-image: url("../../media/BackgroundTest.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ---------- Navigation ---------- */
.banner-container {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-weight: normal;
}

.banner {
  text-decoration: none;
  background: var(--cyan-gel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--gel-sheen), 0 3px 8px rgba(20, 40, 60, 0.26);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px 4px 15px 4px;
  font-size: 1rem;
  min-width: 55px;
  text-align: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.banner:hover {
  background: var(--cyan-gel-hover);
  transform: translateY(-1px);
  box-shadow: var(--gel-sheen), 0 5px 12px rgba(20, 40, 60, 0.3);
}

/* current page indicator (orange = the one accent colour) */
.banner.active,
.banner[aria-current="page"] {
  background: var(--orange-gel);
  color: #fff;
  text-shadow: 0 1px 2px rgba(120, 45, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
}
.banner.active:hover,
.banner[aria-current="page"]:hover {
  background: var(--orange-gel-hover);
  transform: translateY(-1px);
}

#name {
  background: transparent;
  border: none;
  box-shadow: none;
  font-style: italic;
  cursor: default;
}
#name:hover { background: transparent; transform: none; box-shadow: none; }

/* ---------- Frosted content panel ---------- */
.body-container {
  display: flex;
  flex-direction: column;
  background: var(--frost);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 40px rgba(20, 40, 60, 0.18);
  border-radius: 25px;
  margin: 0 auto;
  max-width: 1100px;
  padding: 12px 0 30px;
}

/* ---------- Logo + diagonal tagline (intentional asymmetry) ---------- */
#logo {
  display: block;
  max-width: 460px;
  width: 70%;
  height: auto;
  margin: 6px auto;
}

#sub1, #sub2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* sub1 ends at centre (upper-left of logo); sub2 starts at centre
   (lower-right) — a deliberate diagonal that scales with the viewport. */
#sub1 {
  width: 50%;
  text-align: right;
  padding-right: 10px;
}
#sub2 {
  width: 50%;
  margin-left: 50%;
  text-align: left;
  padding-left: 10px;
  color: var(--orange);
}

/* ---------- Typography ---------- */
h1 { text-align: center; }
h1 { font-weight: 700; letter-spacing: 0.01em; }
h2 { padding-left: 5%; }
h3 { padding-left: 5%; }
h4 { padding-left: 10%; }
h4 { font-weight: 700; }

ol, ul { padding-left: 15%; }

p {
  padding: 0 6%;
  max-width: 110ch;
  margin: 0.7rem auto;
  line-height: 1.6;
}
p a, .home-btn { color: var(--link); font-weight: 600; }

/* anti-spam helper (contact page hides decoy text) + reset list bullets */
span { display: none; }
ul { list-style-type: none; }

/* ---------- "The Workbench" section header ---------- */
.workbench {
  position: relative;
  overflow: hidden;
  margin: 22px 18%;
  padding: 4px 0;
  background: var(--cyan-gel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--gel-sheen), 0 4px 12px rgba(20, 40, 60, 0.18);
  border-bottom: 4px solid var(--orange);
  clip-path: polygon(
    0 26px, 26px 0, 100% 0,
    100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%
  );
}
.workbench h1 { margin: 10px 0; }

/* ---------- Project grid (uniform cards) ---------- */
.legacy-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  margin: 22px 4%;
}
.legacy-container .content {
  display: block;
  text-decoration: none;
  color: inherit;
}
.legacy {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--frost-card);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  clip-path: polygon(
    0 22px, 22px 0, 100% 0,
    100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%
  );
  box-shadow: 0 6px 18px rgba(20, 40, 60, 0.15);
  transition: transform .15s ease, box-shadow .15s ease;
}
.legacy:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(20, 40, 60, 0.28);
}
.text-tl {
  background: var(--orange-gel);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: var(--gel-sheen);
  padding: 10px 8px;
}
.legacy .title {
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(120, 45, 0, 0.55);
}
.legacy:hover .text-tl { background: var(--orange-gel-hover); }
.legacy-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
}

/* ---------- Shortcut links ---------- */
.shortcut-links {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px 4%;
}
.shortcut-links a {
  flex: 1 1 240px;
  max-width: 320px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 18px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: var(--cyan-gel);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--gel-sheen), 0 4px 11px rgba(20, 40, 60, 0.26);
  clip-path: polygon(
    0 16px, 16px 0, 100% 0,
    100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%
  );
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.shortcut-links a:hover {
  background: var(--cyan-gel-hover);
  transform: translateY(-3px);
  box-shadow: var(--gel-sheen), 0 7px 16px rgba(20, 40, 60, 0.3);
}

/* the "see all as a timeline" tile keeps a subtle dashed-road nod */
#all-projects-tl {
  position: relative;
  padding-bottom: 24px;
}
#all-projects-tl::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 9px;
  height: 4px;
  background-image: repeating-linear-gradient(90deg, var(--orange) 0 13px, transparent 0 25px);
}

/* ---------- Footer ---------- */
footer { text-align: center; }
footer h4 { font-size: 80%; color: #35353b; }
.footer-container {
  background: var(--frost);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  width: 250px;
  margin: 24px auto 0;
  padding: 12px 50px;
}
.home-btn { text-decoration: none; }

/* ---------- Drift entry buttons (frosty, asymmetric, snow-on-hover) ---------- */
.drift-link {
  position: relative;
  isolation: isolate;
  display: block;
  width: 90%;
  max-width: 480px;
  margin: 28px auto;
  padding: 32px 42px;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  background: linear-gradient(150deg, rgba(255,255,255,0.95), rgba(224,248,255,0.82) 55%, rgba(196,238,252,0.70));
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 26px rgba(60,110,140,0.20);
  clip-path: polygon(6% 0%, 100% 0%, 100% 78%, 94% 100%, 0% 100%, 0% 22%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.drift-link:hover,
.drift-link:focus-visible {
  transform: translateY(-5px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 16px 34px rgba(60,110,140,0.28);
}

.drift-link-text {
  display: inline-block;
  position: relative;
  z-index: 2;
}

/* left-to-right icy light wave */
.drift-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -65%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.9), rgba(180,232,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left .65s ease;
  z-index: 1;
  pointer-events: none;
}
.drift-link:hover::before,
.drift-link:focus-visible::before {
  left: 130%;
}

/* one-shot snow burst on hover */
.snowflake {
  display: block;
  position: absolute;
  top: -10%;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px 1px rgba(255,255,255,0.8);
  opacity: 0;
  pointer-events: none;
}
.drift-link:hover .snowflake,
.drift-link:focus-visible .snowflake {
  animation: snow-fall 1.2s ease-in forwards;
}
@keyframes snow-fall {
  0%   { opacity: 0; transform: translateY(0) translateX(0) scale(0.8); }
  12%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(100px) translateX(var(--drift, 8px)) scale(1); }
}
.snowflake:nth-child(2) { left: 8%;  width: 5px; height: 5px; animation-delay: 0s;    --drift: 6px; }
.snowflake:nth-child(3) { left: 20%; width: 8px; height: 8px; animation-delay: .08s; --drift: -14px; }
.snowflake:nth-child(4) { left: 34%; width: 4px; height: 4px; animation-delay: .18s; --drift: 10px; }
.snowflake:nth-child(5) { left: 48%; width: 6px; height: 6px; animation-delay: .05s; --drift: -8px; }
.snowflake:nth-child(6) { left: 60%; width: 5px; height: 5px; animation-delay: .22s; --drift: 12px; }
.snowflake:nth-child(7) { left: 74%; width: 7px; height: 7px; animation-delay: .12s; --drift: -10px; }
.snowflake:nth-child(8) { left: 86%; width: 4px; height: 4px; animation-delay: .28s; --drift: 8px; }
.snowflake:nth-child(9) { left: 94%; width: 6px; height: 6px; animation-delay: .02s; --drift: -6px; }

/* ---------- Mobile ---------- */
@media only screen and (max-width: 600px) {
  #name { display: none; }
  .banner { padding: 5px 7px; font-size: 0.9rem; min-width: 40px; }
  .banner-container { gap: 4px; padding: 6px; }
  #logo { width: 80%; }
  #sub1, #sub2 { font-size: 0.95rem; letter-spacing: 0.12em; }
  .body-container { margin: 0 8px; }
  .workbench { margin: 18px 6%; }
  .legacy-container { grid-template-columns: 1fr; margin: 16px 6%; }
  .shortcut-links { flex-direction: column; }
  .shortcut-links a { width: 100%; max-width: 340px; flex-basis: auto; }
  h1 { font-size: 150%; }
  .drift-link { width: 100%; padding: 24px 22px; }
}
