:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #05070f;
  color: #edf2ff;
  text-rendering: optimizeLegibility;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Inter:wght@400;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

video {
  max-width: 100% !important;
  height: auto;
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(88, 128, 235, 0.12), transparent 24%),
    radial-gradient(circle at bottom right, rgba(163, 83, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #05070f 0%, #0e1221 100%);
}

::selection {
  background: rgba(141, 175, 234, 0.4);
  color: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: 
    linear-gradient(180deg, 
      transparent 0%, 
      rgba(134, 212, 255, 0.15) 45%,
      rgba(134, 212, 255, 0.25) 50%,
      rgba(134, 212, 255, 0.15) 55%,
      transparent 100%),
    radial-gradient(circle at center, rgba(134, 212, 255, 0.08) 0%, transparent 25%),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(135deg, rgba(8, 18, 43, 0.96), rgba(5, 9, 20, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    rgba(134, 212, 255, 0) 0%,
    rgba(134, 212, 255, 0.6) 25%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(134, 212, 255, 0.6) 75%,
    rgba(134, 212, 255, 0) 100%);
  box-shadow: 0 0 20px rgba(134, 212, 255, 0.8),
              0 0 40px rgba(134, 212, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

.top-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 70;
  transform: translateX(-50%);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  max-width: calc(100vw - 2rem);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .top-nav {
    padding: 0.4rem 0.65rem;
    gap: 0.55rem;
  }
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top center, rgba(94, 165, 255, 0.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(164, 87, 255, 0.1), transparent 18%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.top-nav a {
  color: rgba(235, 245, 255, 0.9);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.top-nav .top-start {
  font-weight: 700;
  background: transparent;
  color: rgba(235, 245, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.top-nav .top-start:hover,
.top-nav .top-start:focus-visible {
  background: rgba(134, 212, 255, 0.16);
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: #fff;
  background: rgba(134, 212, 255, 0.14);
  transform: translateY(-1px);
}

.top-nav a.active {
  color: #ffffff;
  background: rgba(134, 212, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(134, 212, 255, 0.18);
}

section,
.glass-card[id] {
  scroll-margin-top: 110px;
}

.cover-tag {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7c8ff;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  background: linear-gradient(135deg, rgba(123, 156, 255, 0.95), rgba(102, 226, 255, 0.95));
  color: #05070f;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 70;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-logo {
  display: block;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.logo-title {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(3rem, 5vw, 4.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 0.98;
  background: linear-gradient(90deg, #ffffff 0%, #c0d9ff 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(134, 212, 255, 0.18));
}

.logo-title .logo-accent {
  background: linear-gradient(90deg, #7ba4ff 0%, #b8d4ff 50%, #7ba4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.logo-title .logo-accent {
  color: #ffffff;
}

.site-logo .logo-accent {
  color: #ffffff;
}

.site-logo .logo-part {
  color: #edf2ff;
  text-shadow: none;
}

.eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  color: #9bb4ff;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.9;
  color: rgba(235, 243, 255, 0.92);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: clamp(1.7rem, 2vw, 2.25rem);
  margin-bottom: 1.2rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 88px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b9cff, #86d4ff 100%);
}

p,
li {
  color: #cdd6ff;
  line-height: 1.85;
}

ul {
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.5rem;
}

.glass-card,
.card {
  background: rgba(11, 18, 33, 0.78);
  border: 1px solid rgba(119, 177, 255, 0.14);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  border-radius: 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#wywiady .card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

#wywiady .card-img-top {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  margin-right: 1rem;
}

#wywiady .card-body {
  flex: 1;
}

.card-body {
  padding: 1.8rem 1.4rem;
  flex: 1;
}

.card-body video {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(100%, 260px);
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.card-title {
  margin-bottom: 1rem;
}

.glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.card-img-top {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(100%, 260px);
  max-height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center center;
}

.cover-img {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0 auto 1.25rem;
  width: min(100%, 260px);
  max-height: 360px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center center;
}

.row.g-4 > .col-md-4 {
  display: flex;
}

.row.g-4 > .col-md-4 > .glass-card {
  flex: 1;
}

.glass-card h3,
.glass-card p {
  text-align: center;
}

.card-body ul {
  margin: 0;
}

.text-muted {
  color: rgba(231, 239, 255, 0.72) !important;
}

footer {
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(7, 15, 31, 0.96), rgba(2, 6, 17, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
}

footer p {
  margin: 0;
  color: rgba(213, 223, 255, 0.78);
}

code {
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.18rem 0.45rem;
  border-radius: 0.35rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.glass-card:hover,
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  border-color: rgba(137, 179, 255, 0.24);
}

.cover-img:hover {
  transform: scale(2);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

@media (max-width: 991px) {
  main {
    padding: 2.5rem 1rem 3rem;
  }

  .hero {
    padding: 0;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 0;
  }

  .site-logo {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .cover-img {
    max-width: 100%;
    width: 100%;
    max-height: 260px;
  }
}

summary {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7c8ff;
  cursor: pointer;
}
