: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;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  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%);
}

.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent__content {
  width: min(100%, 640px);
  background: rgba(7, 12, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.cookie-consent__content h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.cookie-consent__content p {
  margin-bottom: 0.85rem;
  color: rgba(235, 245, 255, 0.9);
  line-height: 1.6;
}

.cookie-consent__actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-consent__actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, rgba(134, 212, 255, 0.24), rgba(163, 83, 255, 0.24));
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__actions button:hover,
.cookie-consent__actions button:focus-visible {
  background: linear-gradient(135deg, rgba(134, 212, 255, 0.32), rgba(163, 83, 255, 0.32));
  outline: none;
}

.cookie-consent.is-hidden {
  display: none;
}

::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);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 2.5rem;
  height: 2.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(7, 12, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  padding: 0;
  font-size: 1rem;
  color: rgba(235, 245, 255, 0.9);
  backdrop-filter: blur(16px);
}

.hamburger:hover {
  background: rgba(7, 12, 20, 0.98);
  border-color: rgba(134, 212, 255, 0.3);
}

.hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: rgba(235, 245, 255, 0.9);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(0.6rem) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-0.6rem) rotate(-45deg);
}

/* ===== SIDE MENU ===== */
.side-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: rgba(7, 12, 20, 0.98);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 99;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 1rem;
}

.side-menu.open {
  display: flex;
  flex-direction: column;
  transform: translateX(0);
}

.side-menu-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.side-menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: rgba(235, 245, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
  font-size: 1rem;
}

.side-menu-link:first-child {
  padding-top: 1.5rem;
}

.side-menu-link:hover,
.side-menu-link:focus-visible {
  background-color: rgba(134, 212, 255, 0.12);
  color: #ffffff;
  padding-left: 2rem;
  outline: none;
}

/* ===== MENU OVERLAY ===== */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.menu-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* ===== RESPONSIVE TOP NAV ===== */
@media (max-width: 1024px) {
  .top-nav {
    padding: 0.4rem 0.65rem;
    gap: 0.4rem;
    font-size: 0.85rem;
  }

  .top-nav a {
    padding: 0.4rem 0.7rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .top-nav {
    display: none;
  }

  section,
  .glass-card[id] {
    scroll-margin-top: 60px;
  }
}

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);
}

@media (max-width: 767px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Show wywiady section immediately */
#wywiady {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.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;
}

.documentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.documentation-grid-vertical-first {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
}

.documentation-grid-vertical-first .documentation-card:nth-child(-n + 3) {
  grid-column: span 1;
  grid-row: span 2;
}

.documentation-card {
  padding: 0.9rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  touch-action: manipulation;
}

.documentation-image {
  display: block;
  width: 100%;
  height: clamp(180px, 32vw, 260px);
  min-height: clamp(180px, 32vw, 260px);
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  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;
  flex-shrink: 0;
}

.documentation-card:hover {
  z-index: 1000;
}

@media (hover: hover) and (pointer: fine) {
  .documentation-card:hover .documentation-image {
    transform: scale(1.9);
    box-shadow: 0 50px 90px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    position: relative;
  }
}

.documentation-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.documentation-caption {
  margin: 0;
  padding: 0.2rem 0.25rem 0;
  text-align: left;
  color: rgba(231, 239, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
  min-height: 5.3rem;
}

@media (max-width: 991px) {
  .documentation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .documentation-grid {
    grid-template-columns: 1fr;
  }

  .documentation-image {
    height: 220px;
    min-height: 220px;
  }

  .documentation-caption {
    min-height: auto;
    font-size: 0.92rem;
    line-height: 1.6;
  }
}

@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;
  }

  main {
    padding: 1.5rem 0.5rem 2rem;
    overflow: visible;
  }

  .row.g-4 {
    gap: 1rem !important;
    overflow: visible;
  }

  /* Mobile layout for character cards */
  #wywiady .card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
    min-height: auto !important;
  }

  #wywiady .card-img-top {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
    margin-right: 0 !important;
    margin-bottom: 1rem;
  }

  #wywiady .card-body {
    padding: 0.8rem 1rem;
  }

  #wywiady .card-body video {
    width: 100% !important;
    max-width: none !important;
  }

  .col-md-6,
  .col-lg-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  body {
    overflow-x: hidden;
  }

  main {
    max-width: 100vw;
    padding: 1rem 0.5rem;
  }

  section {
    padding: 1.5rem 0;
  }

  h2 {
    font-size: 1.5rem;
  }

  .row.g-4 {
    gap: 0.75rem !important;
  }

  #wywiady .card {
    margin-bottom: 1rem;
  }
}

summary {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a7c8ff;
  cursor: pointer;
}
