/* ============================================================
   TOMEK OSINSKI — PORTFOLIO SHARED STYLESHEET
   Used by: index.html, resume.html, resume-photo.html, leadership.html,
            ai-design.html, self-service-betting-terminal-ux.html, responsive-sportsbook-redesign.html
   ============================================================ */

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === CSS VARIABLES === */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #161618;
  --border: #222225;
  --border-hover: #333338;
  --text-primary: #ededef;
  --text-secondary: #a1a1a6;
  --text-muted: #7a7a7e;
  --accent: #E8875A;
  --accent-dim: rgba(232, 135, 90, 0.08);
  --accent-glow: rgba(232, 135, 90, 0.18);
  --serif: 'Satoshi', 'Arial Black', sans-serif;
  --sans: 'Outfit', -apple-system, sans-serif;

  /* Aliases so legacy variable names in bwin case study resolve correctly */
  --font-display: var(--serif);
  --font-body: var(--sans);
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-elevated);
}

/* === BASE === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === NOISE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* === ACCESSIBILITY: SKIP LINK + FOCUS === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Visible keyboard focus for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.nav-logo span { color: var(--accent); }
.nav-logo-surname { color: var(--accent); }
.nav-logo-dot { color: var(--text-primary); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-back:hover { color: var(--text-primary); }
.nav-back svg { transition: transform 0.3s; }
.nav-back:hover svg { transform: translateX(-4px); }

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 960px;
}

/* === SECTION LABELS === */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* === TAGS === */
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

/* === FOOTER === */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.65rem; }
}
