/* ==== SCROLLING FRAME (top + bottom) ==== */
/* Bar height — tweaked as needed */
:root {
  --ticker-h: 30px;           /* frame thickness */
  --ticker-speed: 90s;        /* lower = faster */
}

/* --- background and font styles --- */
body {
    background: url('background.jpg') no-repeat center center fixed; /* path to image */
    background-size: cover; /* Ensures the image covers the entire background */
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    font-family: "Trebuchet MS", sans-serif;
    font-family: 'Source Code Pro', 'Bungee', 'Comic Sans MS', 'Courier New', sans-serif;
    padding-top: var(--ticker-h);
    padding-bottom: var(--ticker-h);
}

/* --- font styles --- */
.bungee-regular {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.source-code-pro-mainfont {
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

/* --- floating window --- */
.window {
  background: linear-gradient(180deg, #ffffff 40%, #eaffea 100%);
  border: 2px solid rgba(150, 255, 150, 0.8);
  border-radius: 16px;
  box-shadow:
    0 8px 25px rgba(0, 128, 0, 0.25),
    inset 0 1px 8px rgba(255, 255, 255, 0.8);
  width: 600px;
  max-width: 85%;
  overflow: hidden;
  animation: fadeIn 1s ease;
  backdrop-filter: blur(8px);
}

/* --- window header --- */
.window-header {
  background: linear-gradient(180deg, #b2f1b2 0%, #89e089 100%);
  color: white;
  font-weight: bold;
  padding: 10px 15px;
  text-shadow: 1px 1px 2px rgba(0, 80, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.window-header::after {
  content: "🗕 🗖 ✕";
  float: right;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* --- content --- */
.window-content {
  padding: 25px;
  text-align: center;
  color: #2e5b2e;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The scrolling bars */
.ticker {
  position: fixed;
  left: 0;
  width: 100%;
  height: var(--ticker-h);
  z-index: 999;
  pointer-events: none; /* clicks go through to your page */
  background: url("greenborder.jpg") repeat-x center;
  background-size: auto 100%; /* scale height to bar */
  animation: scroll-right var(--ticker-speed) linear infinite;
  /* Optional soft edge */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15) inset;
}

.ticker.top { top: 0; }
.ticker.bottom { bottom: 0; }

/* Rightward endless scroll */
@keyframes scroll-right {
  from { background-position-x: 0; }
  to   { background-position-x: 1000px; } /* any large value works */
}

/* Reduce motion for sensitive users */
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
}

/* === Frutiger Aero Green Buttons === */
.aero-btn {
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, #b9f7b4 0%, #88e188 60%, #63cc63 100%);
  border: 2px solid #63cc63;
  border-radius: 30px;
  color: #1d3b1d;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 28px;
  margin: 8px;
  cursor: pointer;
  box-shadow:
    0 4px 10px rgba(0, 128, 0, 0.25),
    inset 0 1px 3px rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

/* subtle glassy highlight at the top */
.aero-btn::before{
  content:"";
  position:absolute; inset:2px 2px auto 2px;
  height:45%;
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,255,255,0));
  pointer-events:none;
}

/* hover and active states */
.aero-btn:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.aero-btn:active{ transform: translateY(0); box-shadow: inset 0 2px 6px rgba(0,0,0,.15); }

.mute-btn{
  position: fixed;
  left: 8px; /* move further left */
  top: 8px;  /* move higher */
  z-index: 1100; /* ensure it sits above tickers */
  padding: 8px 12px;
  border-radius: 8px;
}

/* when muted, slightly gray it */
.muted{
  filter: saturate(.7) brightness(.95);
}

/* group layout */
.button-group {
  text-align: center;
  margin-top: 20px;
  position: relative;
}

/* make sure buttons behave well in flex or centered layouts */
button {
  position: relative;
  display: inline-block;
}

/* ===== Frutiger Aero mini-window styles (RIGHT PANELS) ===== */
.side-panel { position: relative; width: 240px; }

.panel-header {
  background: linear-gradient(180deg, #b2f1b2 0%, #89e089 100%);
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border: 2px solid #63cc63;
  border-bottom: none;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  text-shadow: 1px 1px 2px rgba(0, 70, 0, 0.35);
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.85);
}

.panel-header::after {
  content: "🗕 🗖 ✕";
  float: right;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.panel-body {
  position: relative;
  height: 185px;                 /* match your canvas height */
  border: 2px solid #63cc63;
  border-top: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  background: linear-gradient(180deg, #ffffff 40%, #eaffea 100%);
  box-shadow:
    0 8px 18px rgba(0, 128, 0, 0.25),
    inset 0 1px 8px rgba(255,255,255,0.85);
  overflow: hidden;               /* hides falling stars edges */
}

.panel-body::before {
  content: "";
  position: absolute;
  left: 6px; right: 6px; top: 6px;
  height: 38%;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
  pointer-events: none;           /* glossy highlight */
}

.panel-body canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;     /* crisp pixels */
}

.panel-content {
  position: relative;
  z-index: 2;                     /* above the stars */
  padding: 10px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
}

/* add a glow to hovered blinkie or badge */
/* === Clickable badge hover effect (Frutiger Aero glow) === */
.panel-content a img {
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  border-radius: 8px; /* gives a smoother glow edge */
}

/* On hover: slight lift, soft green glow */
.panel-content a img:hover {
  transform: scale(1.07);
  filter: brightness(1.2);
  box-shadow: 0 0 12px 3px rgba(100, 255, 150, 0.6);
}

/* Make blinkies stack vertically instead of side by side */
.side-panel:nth-of-type(2) .panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px; /* spacing of blinkies */
}

/* One body block (merge your background + centering + min-height) */
body {
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: calc(100vh - var(--ticker-h) - var(--ticker-h));
  padding-top: var(--ticker-h);
  padding-bottom: var(--ticker-h);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-direction: column;
  font-family: 'Source Code Pro', 'Bungee', 'Comic Sans MS', 'Courier New', sans-serif;
}

/* Stage wraps window + right column */
.stage {
  position: relative;
  display: inline-block; /* shrink-wrap to the window */
}

/* Column sits to the RIGHT of the window */
.side-column {
  position: absolute;
  top: 0;          /* align tops */
  left: 90%;      /* right edge of the window */
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 700;
}

/* Panels flow inside the column */
.side-panel { position: relative; width: 240px; }

/* Hide column on narrow screens */
@media (max-width: 980px) { .side-column { display: none; } }

/* Mute button: top-left under the ticker */
.mute-btn {
  position: fixed;
  top: calc(var(--ticker-h) + 10px);
  left: 14px;
  z-index: 1100;
}

/* ===== Floating draggable windows ===== */
.fly-window{
  position: fixed;
  left: 120px; top: 120px;
  width: 520px; max-width: min(92vw, 640px);
  background: linear-gradient(180deg, #ffffff 40%, #eaffea 100%);
  border: 2px solid rgba(150, 255, 150, 0.9);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0,128,0,.25), inset 0 1px 8px rgba(255,255,255,.85);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.fly-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(180deg, #b2f1b2 0%, #89e089 100%);
  color: #fff; font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,70,0,.35);
  cursor: move; user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.6);
}

.fly-title{ pointer-events: none; }
.fly-controls{ display: inline-flex; gap: 6px; }

.fly-btn{
  background: transparent; border: none; color: rgba(255,255,255,.9);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 6px;
}
.fly-btn:hover{ filter: brightness(1.1); }

.fly-content{
  padding: 14px;
  color: #2e5b2e;
  max-height: min(70vh, 560px);
  overflow: auto;
}

/* Minimize / Maximize states */
.fly-window.is-min .fly-content{ display: none; }
.fly-window.is-max{
  left: 12px !important; top: calc(var(--ticker-h) + 12px) !important;
  width: calc(100vw - 24px); max-width: calc(100vw - 24px);
  height: calc(100vh - var(--ticker-h) - var(--ticker-h) - 24px);
}
.fly-window.is-max .fly-content{
  max-height: none; height: calc(100% - 42px); /* header height approx */
  overflow: auto;
}

/* Reuse your existing card/link/about styles */
.about-flex { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.about-pic  { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,128,0,.18); }
.link-grid  { display: grid; grid-template-columns: repeat(2, minmax(140px,1fr)); gap: 12px; }
.cards      { display: grid; grid-template-columns: repeat(2, minmax(180px,1fr)); gap: 14px; margin-top: 10px; }
.card{
  background: linear-gradient(180deg,#fff 40%, #eaffea 100%);
  border: 2px solid #63cc63; border-radius: 14px; padding: 12px;
  box-shadow: 0 8px 18px rgba(0,128,0,.18), inset 0 1px 8px rgba(255,255,255,.85);
}
.contact-layout { display: grid; grid-template-columns: 1fr 160px; gap: 16px; align-items: center; }
.earth-gif { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,128,0,.18); }

@media (max-width: 640px){
  .about-flex{ grid-template-columns: 1fr; }
  .link-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .contact-layout{ grid-template-columns: 1fr; }
}

/* --- LINK ICON GRID --- */
.link-icon-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(140px,1fr));
  gap:12px;
  margin-top:8px;
}
.icon-tile{
  display:grid;
  place-items:center;
  text-decoration:none;
  color:#1d3b1d;
  background: linear-gradient(180deg,#b9f7b4 0%, #88e188 60%, #63cc63 100%);
  border: 2px solid #63cc63;
  border-radius: 16px;
  padding:14px 10px;
  box-shadow: 0 6px 14px rgba(0,128,0,.22), inset 0 1px 3px rgba(255,255,255,.9);
  text-shadow: 0 1px 1px rgba(255,255,255,.8);
  transition: transform .15s ease, filter .15s ease;
}
.icon-tile:hover{ transform: translateY(-2px); filter: brightness(1.04); }
.icon-tile img,.icon-tile .emoji{
  width:42px; height:42px; border-radius:50%;
  background:#fff; display:grid; place-items:center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12), inset 0 1px 3px rgba(255,255,255,.85);
  margin-bottom:8px;
}
.icon-tile .emoji{ font-size:26px; }

/* --- WORK / PROJECT CARDS --- */
.work-section{ margin:14px 0 6px; text-transform:uppercase; letter-spacing:.04em; }

.project-list{ display:grid; gap:14px; }

.project-card{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:14px;
  align-items:start;
  background: linear-gradient(180deg,#fff 40%, #eaffea 100%);
  border:2px solid #63cc63; border-radius:14px; padding:12px;
  box-shadow: 0 8px 18px rgba(0,128,0,.18), inset 0 1px 8px rgba(255,255,255,.85);
}
.project-card.is-soon{ opacity:.85; }

.project-media{
  border-radius:12px; overflow:hidden;
  box-shadow: 0 6px 16px rgba(0,128,0,.18);
}
.project-media video, .project-media img{
  width:100%; height:100%; display:block; object-fit:cover;
}

.project-media.soon{
  display:grid; place-items:center; min-height:120px;
  background: repeating-linear-gradient(135deg,#eaffea,#eaffea 12px,#ffffff 12px,#ffffff 24px);
  font-size:28px;
}

.project-media iframe {
  border-radius: 12px;
  border: 2px solid #63cc63;
  box-shadow:
    0 8px 16px rgba(0,128,0,0.25),
    inset 0 1px 6px rgba(255,255,255,0.8);
}

.project-body h5{ margin:0 0 6px; font-size:18px; }
.project-body p{ margin:0 0 10px; }

.project-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:#b9f7b4; border:2px solid #63cc63; color:#1d3b1d;
  text-decoration:none; font-weight:600;
  box-shadow: 0 3px 8px rgba(0,128,0,.18), inset 0 1px 2px rgba(255,255,255,.85);
  transition: transform .15s ease, filter .15s ease;
}
.chip:hover{ transform: translateY(-1px); filter: brightness(1.03); }

/* Responsive tweaks */
@media (max-width: 720px){
  .project-card{ grid-template-columns: 1fr; }
}

/* Ensure icon above, label below */
.link-icon-grid {  /* keeps your 2x2 grid */
  display: grid;
  grid-template-columns: repeat(2, minmax(140px,1fr));
  gap: 12px;
}

.icon-tile{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1d3b1d;
  background: linear-gradient(180deg,#b9f7b4 0%, #88e188 60%, #63cc63 100%);
  border: 2px solid #63cc63;
  border-radius: 16px;
  padding: 14px 10px;
  box-shadow: 0 6px 14px rgba(0,128,0,.22), inset 0 1px 3px rgba(255,255,255,.9);
  text-shadow: 0 1px 1px rgba(255,255,255,.8);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.icon-tile img, .icon-tile .emoji{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12), inset 0 1px 3px rgba(255,255,255,.85);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
  margin-bottom: 8px;   /* <— label sits under this */
}

/* label under the icon */
.icon-tile span{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  transition: transform .18s ease, filter .18s ease;
}

/* POP + GLOW just like your badge hover */
.icon-tile:hover,
.icon-tile:focus-visible{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.icon-tile:hover img,
.icon-tile:focus-visible img{
  transform: scale(1.07);
  filter: brightness(1.2);
  box-shadow: 0 0 12px 3px rgba(100,255,150,.6);
}

.icon-tile:hover span,
.icon-tile:focus-visible span{
  transform: translateY(-1px);
}

/* keyboard focus ring (accessible) */
.icon-tile:focus-visible{
  outline: 3px solid rgba(99,204,99,.65);
  outline-offset: 2px;
}

/* Hide the speaker icon in browser-native controls where possible */
.locked-muted::-webkit-media-controls-volume-slider,
.locked-muted::-webkit-media-controls-mute-button {
  display: none !important;
}

/* Make media fill the card neatly */
.project-card { display: grid; gap: 10px; }

.project-media {
  width: 100%;
  max-width: 560px;        /* looks good within your fly-window */
  aspect-ratio: 16 / 9;    /* maintains video shape */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,128,0,.18);
  margin: 0 auto;          /* center inside the card */
}

/* Any video or iframe inside should fill the box */
.project-media iframe,
.project-media video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
/* ==== END OF STYLE.CSS ==== */