:root{
  --bg: #070313;
  --panel: rgba(123, 78, 255, 0.16);
  --panel-strong: rgba(60, 16, 110, 0.18);
  --text: rgba(255,255,255,0.94);
  --muted: rgba(255,255,255,0.72);
  --faint: rgba(255,255,255,0.56);
  --border: rgba(150, 100, 255, 0.18);
  --accent: #caa2ff;
  --shadow: 0 18px 50px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
/* prevent sticky header from covering anchored sections */
html{ scroll-padding-top: 80px; }

@media (max-width: 920px){
  html{ scroll-padding-top: 64px; }
}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(123, 78, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(86, 32, 136, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: 0.9; }

.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,13,18,0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.logo{
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  color: var(--muted);
}
.nav a{ padding: 8px 10px; border-radius: 10px; }
.nav a:hover{ background: var(--panel); color: var(--text); }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(162, 135, 197, 0.28), rgba(60, 14, 87, 0.22));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow);
}
.btn.small{ padding: 10px 12px; border-radius: 12px; }
.btn.ghost{
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn:hover{ transform: translateY(-1px); transition: 160ms ease; }
.btn:active{ transform: translateY(0px); }
/* disabled state for .btn elements */
.btn[disabled], .btn.disabled{
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.hero{
  padding: 56px 0 26px;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}
.hero-side{
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}

.hero-copy{
  align-self: start;
}
.pill{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
h1{
  margin: 12px 0 10px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.accent{ color: var(--accent); }
.sub{ color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.hero-actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

.social{
  display:flex;
  gap: 14px;
  color: var(--faint);
  flex-wrap: wrap;
}
.social a{
  border-bottom: 1px solid transparent;
}
.social a:hover{
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.hero-card{
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero-card-body{ padding: 16px; }
.hero-card h3{ margin: 0 0 10px; }
.hero-card ul{ margin: 0 0 10px; padding-left: 18px; color: var(--muted); }
.mini{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.95rem;
}
.hero-card-image{
  width: 220px;
  height: 220px;                 
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  box-shadow: var(--shadow);

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-image img{
   width: 100%;
  height: 100%;
  object-fit: contain;           
  display: block;
}
.section{ padding: 54px 0; }
.section.alt{
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head h2{
  margin: 0 0 8px;
  font-size: 1.7rem;
}
.section-head p{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 75ch;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.card{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.thumb{
  height: 150px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--faint);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  overflow: hidden; /* keep thumbnail images contained */
  position: relative;
}

.thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* align image top with thumbnail top */
  display: block;
}

/* Ensure the inner link wrapper fills the thumbnail so the image stays clipped */
.thumb-link{ width:100%; height:100%; display:block; }
.thumb-link img{ width:100%; height:100%; object-fit: cover; display:block; }

/* Per-thumbnail framing tweaks */
.thumb--nature img{
  /* align top and keep horizontal centering */
  object-position: center top;
}
.thumb--kick img{
  /* nudge left while aligning top so the title/logo shows */
  object-position: 25% 0%;
}

/* Popup preview shown above each card on hover (desktop only) */
.thumb-popup{
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.98);
  /* never exceed the card/column width; at most 420px */
  width: min(420px, 100%);
  max-height: 60vh;
  padding: 6px 8px;
  background: rgba(10,8,12,0.96);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 1200;
}
.thumb-popup img{display:block; width:100%; height:auto; border-radius:6px;}
.thumb:hover .thumb-popup{opacity:1; transform: translateX(-50%) scale(1); pointer-events:auto;}
/* When the popup is shown as a floating element (moved to body), apply fixed positioning
   and keep pointer-events disabled so the underlying thumbnail retains hover state. */
.thumb-popup.floating{
  position: fixed !important;
  transform: none !important;
  pointer-events: none !important;
  z-index: 1200 !important;
  /* allow JS to set `left`/`top` so the popup appears beside its thumbnail */
}
@media (max-width: 920px){ .thumb-popup{ display:none; } }

.card-body{ padding: 14px; }
.card-body h3{ margin: 0 0 6px; }
.meta{ margin: 0 0 10px; color: var(--faint); font-size: 0.95rem; }
.bullets{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.card-actions{
  display:flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.link{
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.link:hover{
  border-bottom: 1px solid rgba(125,211,252,0.35);
}

.cv-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel{
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}
.tags{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.tags span{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.95rem;
}
.small{ color: var(--faint); font-size: 0.95rem; }

.about{
  max-width: 78ch;
  color: var(--muted);
}

.contact{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer{
  padding: 28px 0 40px;
  color: var(--faint);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/*Game Reviews*/
.review-tiles{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: start; 
  padding-bottom: 90px;
}

.review-tile{
  display: inline-flex;          /* so it doesn't feel like a full bar */
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  width: 100%;                   /* each tile fills its grid cell */
  max-width: 200px;              /* stops it from getting stupid-wide on huge screens */
}
.review-line{
  display: block;
  margin: 6px 0;
  color: var(--muted);
}
.review-tile:hover{
  transform: translateY(-2px);
  transition: 160ms ease;
}

.tile-title{
  font-weight: 700;
}

.tile-meta{
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* keep score close to title */
  gap: 10px;
  color: var(--muted);
}

.tile-score{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-side{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .cv-grid{ grid-template-columns: 1fr; }
  .nav{ gap: 8px; }
}

