/* ============================================
   Sebastian Sawicki Portfolio — shared styles
   Ported from Figma as faithfully as possible
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&family=Instrument+Serif:ital@0;1&family=Audiowide&display=swap');

:root {
  --pink: #ffa0f2;
  --deep-purple: #180531;
  --btn-grad-start: #d9d9d9;
  --btn-grad-end: #3a178c;
  --btn-text-start: #001dda;
  --btn-text-end: #ffffff;
  --card-grey: #d9d9d9;
  --terminal-green: #27e721;
  --terminal-bg: #030101;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--deep-purple);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ---------- Reusable "See Full Page" / nav button ---------- */
.grad-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 73px;
  padding: 0 32px;
  border-radius: 60px;
  background: linear-gradient(90deg, var(--btn-grad-start), var(--btn-grad-end));
  cursor: pointer;
  border: none;
}

.grad-button span {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--btn-text-start) 23.5%, var(--btn-text-end) 67.3%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 0 48px;
  border-radius: 60px;
  background: linear-gradient(180deg, #5a1fbf, #5c964d 53%, #737373);
  cursor: pointer;
  border: none;
}

.back-button span {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: white;
}

/* ---------- Retro terminal loading overlay ---------- */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--terminal-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 54px 0 0 0;
}

.terminal-banner {
  display: inline-flex;
  align-items: center;
  height: 96px;
  padding: 0 40px 0 24px;
  margin-left: 0;
  background: #6fa650;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}

.terminal-banner span {
  font-family: 'Audiowide', sans-serif;
  font-size: 48px;
  color: #000;
  letter-spacing: -1px;
  white-space: nowrap;
}

#loading-text {
  font-family: 'Audiowide', sans-serif;
  color: var(--terminal-green);
  font-size: 48px;
  margin-left: 70px;
  margin-top: 40px;
  letter-spacing: -0.02em;
}

#loading-overlay.hidden {
  display: none;
}

/* ---------- Section heading pill (My Projects / Who am I? etc labels) ---------- */
.pill-heading {
  display: inline-block;
  font-weight: 700;
  font-size: 40px;
}

.section-title {
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.02em;
  color: #000;
}

.big-serif {
  font-family: 'Instrument Serif', serif;
  font-size: 64px;
  color: #000;
}

.body-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #000;
  line-height: 1.3;
}

.placeholder-card {
  background: var(--card-grey);
  border-radius: 30px;
}

/* ---------- Project report page ---------- */
.project-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero img {
  max-width: 100%;
  height: auto;
  display: block;
}

.floating-back {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 100;
}

/* ---------- Portfolio grid page ---------- */
.category-section {
  padding: 80px 60px;
}

.category-title {
  font-weight: 900;
  font-size: 48px;
  color: #fff;
  margin-bottom: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--card-grey);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Persistent cross-page nav ---------- */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(10, 5, 20, 0.72);
  backdrop-filter: blur(6px);
  font-family: 'Inter', sans-serif;
}
#site-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0.85;
}
#site-nav a:hover { background: rgba(255,255,255,0.15); opacity: 1; }

/* ---------- Full real-image page with click hotspots ---------- */
.real-page-wrap {
  position: relative;
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
}
.real-page-wrap img { width: 100%; display: block; }
.hotspot {
  position: absolute;
  cursor: pointer;
}

.project-card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* ---------- Portfolio: real image + reliable click grid ---------- */
.label-only {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #3a178c, #180531);
}
.quick-links-title {
  color: #fff;
  font-weight: 900;
  font-size: 36px;
  padding: 40px 40px 10px;
}
.quick-links-sub {
  color: #ccc;
  font-size: 16px;
  padding: 0 40px 20px;
}

/* ---------- Dynamic portfolio grid (data-driven) ---------- */
.dyn-category { padding: 30px 40px 10px; }
.dyn-category h3 { color:#fff; font-size:28px; font-weight:900; margin-bottom:18px; }
.dyn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.dyn-card {
  border-radius: 16px;
  overflow: hidden;
  background: #241f38;
  cursor: pointer;
  transition: transform .15s ease;
  text-decoration: none;
}
.dyn-card:hover { transform: translateY(-4px); }
.dyn-card img { width:100%; height:150px; object-fit:cover; display:block; }
.dyn-card .dyn-label { padding: 10px 14px; color:#fff; font-weight:700; font-size:15px; }
