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

:root {
  --navy: #0b0f1a;
  --navy-mid: #111827;
  --navy-light: #1a2235;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --cream: #f5f3ee;
  --warm-white: #fafaf8;
  --text-dark: #0f172a;
  --text-muted: #64748b;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Blokada przewijania tła na urządzeniach mobilnych przy otwartym menu */
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100dvh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  touch-action: none !important;
}

/* ==========================================================================
   2. CUSTOM INTERACTIVE CURSOR (Desktop Only)
   ========================================================================== */
.cursor {
  display: none;
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--blue-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring {
  display: none;
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(59, 130, 246, 0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s;
}

.cursor.big {
  width: 18px;
  height: 18px;
}

.cursor-ring.big {
  width: 64px;
  height: 64px;
}

@media (hover: hover) and (pointer: fine) {
  .cursor,
  .cursor-ring {
    display: block;
  }
  body {
    cursor: none;
  }
}

/* ==========================================================================
   3. NAVIGATION, HAMBURGER & INTERACTIVE MOBILE MENU
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.3rem 0;
  backdrop-filter: blur(12px);
  transition:
    background 0.4s,
    padding 0.4s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-inner-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.scrolled {
  background: rgba(11, 15, 26, 0.88);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.hidden {
  transform: translateY(-110%);
}

.nav-logo {
  font-family: "DM Sans", sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: capitalize;
  letter-spacing: 0.16em !important;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  z-index: 201;
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.logo-collapsible {
  display: inline-block;
  white-space: nowrap;
  opacity: 1;
  max-width: 120px;
}

/* Specyficzny dla podstrony projektu przycisk powrotu w menu */
.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition:
    color 0.2s,
    gap 0.2s;
}
.nav-back:hover {
  color: #fff;
  gap: 0.8rem;
}
.nav-back svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.nav-back:hover svg {
  transform: translateX(-3px);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

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

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  position: relative;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s,
    width 0.3s;
}

.hamburger span:nth-child(1) {
  width: 28px;
}
.hamburger span:nth-child(2) {
  width: 20px;
}
.hamburger span:nth-child(3) {
  width: 28px;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 28px;
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 28px;
}

/* Ekran mobilny */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  touch-action: none !important;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 5;
}

.mobile-menu ul li {
  overflow: hidden;
  margin-bottom: 0;
  width: 100%;
}

.mobile-menu ul li a {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, min(15vw, 11dvh), 6rem);
  line-height: 1;
  padding: 0.05em 0;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  transform: translateY(60px);
  opacity: 0;
  pointer-events: auto;
  position: relative;
  z-index: 10;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s,
    color 0.2s;
}

.mobile-menu.open ul li:nth-child(1) a {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.07s;
}
.mobile-menu.open ul li:nth-child(2) a {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.13s;
}
.mobile-menu.open ul li:nth-child(3) a {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.19s;
}
.mobile-menu.open ul li:nth-child(4) a {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.25s;
}

.mobile-menu ul li a:hover,
.mobile-menu ul li a:active,
.mobile-menu ul li a:focus {
  color: #fff;
}

.mobile-menu ul li a .num {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  vertical-align: baseline;
  margin-right: 0.9rem;
  font-family: "DM Sans", sans-serif;
}

.mobile-menu-bg-text {
  position: absolute;
  bottom: -0.05em;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(240px, 35vh, 420px);
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.02em;
  line-height: 1;
  z-index: 1;
}

/* ==========================================================
   4. TEXT REVEAL & SPLITTING FIX
   ========================================================== */
.word {
  display: inline-block;
  white-space: nowrap;
}

.char-wrap {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s;
  transition-delay: calc(var(--i) * 0.04s);
}

.char-anim .char {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================
   5. HERO SECTION
   ========================================================== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(11, 15, 26, 0.93) 45%,
    rgba(11, 15, 26, 0.55)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-greeting {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-wave {
  animation: wave 2.4s infinite;
  display: inline-block;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-20deg);
  }
  40% {
    transform: rotate(12deg);
  }
  60% {
    transform: rotate(-12deg);
  }
  80% {
    transform: rotate(8deg);
  }
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.6rem, 7vw, 7.6rem);
  line-height: 0.88;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-title .blue {
  color: var(--blue-bright);
}

.hero-title .line {
  overflow: hidden;
  display: block;
}

.hero-title .line span {
  display: block;
  animation: slideUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title .line:nth-child(1) span {
  animation-delay: 0.1s;
}
.hero-title .line:nth-child(2) span {
  animation-delay: 0.24s;
}

@keyframes slideUp {
  from {
    transform: translateY(110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 2.8rem;
  line-height: 2;
  animation: fadeIn 1s 0.65s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeIn 1s 0.85s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  max-width: 100%;
  box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  transition:
    background 0.25s ease,
    gap 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.hero-cta:hover {
  background: var(--blue-bright);
  gap: 1.2rem;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.hero-cta.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  overflow: hidden;
}

.hero-cta.ghost::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue-bright);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}

.hero-cta.ghost:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.hero-cta.ghost:hover {
  border-color: var(--blue-bright);
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}

.hero-cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s 1.3s both;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue-bright);
  animation: scrollDrop 1.9s ease infinite;
}

@keyframes scrollDrop {
  0% {
    top: -100%;
  }
  100% {
    top: 200%;
  }
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.4rem;
}

.ticker-wrap {
  overflow: hidden;
  padding: 0.88rem 0;
  white-space: nowrap;
  position: relative;
  background: linear-gradient(
    90deg,
    #1a3fa8,
    #2563eb,
    #1d4ed8,
    #3b5bdb,
    #2563eb,
    #1a3fa8
  );
  background-size: 300% 100%;
  animation: tickerBg 6s ease-in-out infinite alternate;
}

@keyframes tickerBg {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.ticker-track {
  display: inline-flex;
  animation: ticker 55s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  margin: 0 1.4rem;
  background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================
   7. FLUID STRUCTURAL SPLIT SECTIONS
   ========================================================== */
section {
  position: relative;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
  /* align-items: stretch; */
  margin: 0;
}

.section-split.reverse {
  direction: rtl;
}

.section-split.reverse > * {
  direction: ltr;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.split-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.4), transparent 70%);
  transition: background 0.6s;
  z-index: 1;
}

.split-media:hover .split-media-overlay {
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.15), transparent 70%);
}

.split-media .parallax-inner {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-media:hover .parallax-inner {
  transform: scale(1.07) rotate(1.2deg) !important;
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(11, 15, 26, 0.25) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.split-media:hover::after {
  opacity: 1;
}

.parallax-inner {
  position: absolute;
  inset: -8%;
  will-change: transform;
}

.parallax-inner img,
.parallax-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(2rem, 6vw, 5rem);
  width: 100%;
}

.split-text-inner {
  width: 100%;
  max-width: clamp(420px, 36vw, 600px);
}

.section-light {
  background: var(--warm-white);
}

.section-dark {
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.5) 0%,
    transparent 70%
  );
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.section-dark::after {
  content: "";
  position: absolute;
  bottom: -25%;
  right: -10%;
  width: 65%;
  height: 65%;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.45) 0%,
    transparent 70%
  );
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.section-dark > * {
  position: relative;
  z-index: 1;
}

.section-dark .section-label {
  color: rgba(255, 255, 255, 0.3);
}

.section-dark .section-heading {
  color: #fff;
}

.section-dark .section-body {
  color: rgba(255, 255, 255, 0.55);
}

.section-label {
  font-size: clamp(0.65rem, 0.55vw + 0.5rem, 0.76rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(1.1rem, 1vw, 1.6rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-heading {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.1rem, 1.4vw + 1.7rem, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: clamp(1.5rem, 1.6vw, 2.3rem);
}

.section-heading strong {
  font-weight: 500;
  display: block;
}

.section-body {
  font-size: clamp(0.95rem, 0.3vw + 0.85rem, 1.1rem);
  line-height: 1.9;
  color: var(--text-muted);
}

.section-body p + p {
  margin-top: clamp(0.85rem, 0.8vw, 1.1rem);
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ==========================================================
   9. SKILLS DISPLAY CHIPS (CLEAN ROW CATEGORIES EDITION)
   ========================================================== */
.skills-section {
  background: var(--warm-white);
  padding: 8rem 3.5rem;
  text-align: center;
}

.skills-section .section-label {
  justify-content: center;
}

.skills-section .section-label::before {
  display: none;
}

.skills-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.skills-title strong {
  font-weight: 500;
}

.skills-container {
  max-width: 1000px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  text-align: center;
}

.skills-category-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.category-name {
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  position: relative;
  /* padding-bottom: 1.2rem; */
  width: 100%;
  text-align: center;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.6rem;
  background: rgba(250, 250, 248, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  cursor: default;
  transition: all 0.3s ease;
  line-height: 1 !important;
  height: 52px;
  box-sizing: border-box;
}

.skill-chip:hover {
  border-color: var(--blue-bright);
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow:
    0 10px 25px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(59, 130, 246, 0.08);
}

.skill-chip .icon {
  width: 30px !important;
  height: 30px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.skill-chip img.icon {
  display: block;
  width: 30px !important;
  height: 30px !important;
  object-fit: contain;
}

/* ==========================================================
   10. CINEMATIC VIDEO WAVE STRIP
   ========================================================== */
.video-strip {
  position: relative;
  height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.video-strip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 15, 26, 0.7),
    rgba(11, 15, 26, 0.86)
  );
}

.video-strip-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.video-strip-content h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.strip-heading .word {
  display: inline-block;
  transition:
    color 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 0.35s ease;
  cursor: default;
}

.strip-heading .word:hover {
  color: var(--blue-bright);
  transform: translateY(-0.08em);
  text-shadow: 0 0 24px rgba(59, 130, 246, 0.55);
}

.video-strip-content p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ==========================================================
   11. PROJECT LIST (Strona Główna)
   ========================================================== */
.projlist-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.projlist-section::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 50%,
      rgba(37, 99, 235, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 60% at 80% 30%,
      rgba(59, 130, 246, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 40% at 60% 80%,
      rgba(37, 99, 235, 0.1) 0%,
      transparent 50%
    );
  animation: gradShift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gradShift {
  0% {
    transform: translate(0%, 0%) scale(1);
  }
  33% {
    transform: translate(3%, -4%) scale(1.04);
  }
  66% {
    transform: translate(-4%, 3%) scale(0.97);
  }
  100% {
    transform: translate(2%, 5%) scale(1.02);
  }
}

.projlist-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: block;
}

.projlist-header {
  margin-bottom: 3rem;
}

.projlist-label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.projlist-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.projlist-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
}

.projlist-title strong {
  font-weight: 500;
  display: block;
}

.projlist-list {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.projlist-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.6rem 1.2rem 1.6rem 0;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.projlist-item:hover {
  padding-left: 1rem;
  border-bottom-color: var(--blue-bright);
}

.projlist-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  width: 0;
  background: rgba(37, 99, 235, 0.06);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.projlist-item:hover::before {
  width: 100%;
}

.projlist-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  width: 2rem;
  flex-shrink: 0;
  transition: color 0.3s;
}

.projlist-item:hover .projlist-num {
  color: var(--blue-bright);
}

.projlist-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  flex: 1;
  line-height: 1;
  transition:
    color 0.3s ease,
    font-size 0.3s ease,
    transform 0.3s ease;
}

.projlist-item:hover .projlist-name {
  color: #fff;
  font-size: 1.65rem;
  transform: translateX(8px);
}

.projlist-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.projlist-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  transition: color 0.3s;
}

.projlist-item:hover .projlist-tag {
  color: var(--blue-bright);
}

.projlist-tag--archived {
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.projlist-item:hover .projlist-tag--archived {
  color: #a1a1aa;
}

.projlist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    background 0.3s,
    transform 0.3s;
}

.projlist-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.projlist-item:hover .projlist-icon {
  background: rgba(37, 99, 235, 0.12);
  transform: scale(1.08);
}

.projlist-arrow {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition:
    color 0.3s,
    transform 0.3s;
}

.projlist-item:hover .projlist-arrow {
  color: var(--blue-bright);
  transform: translateX(6px);
}

/* PROJECT PREVIEW IMAGES */

.projlist-preview {
  position: fixed;
  width: clamp(320px, 35vw, 600px);
  height: clamp(200px, 21.875vw, 375px);
  pointer-events: none;
  z-index: 500;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.58) rotate(-15deg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.projlist-preview.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

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

/* ==========================================================
   14. PROFILE & WEB CMS EXPERT ORBIT SECTION
   ========================================================== */
.profile-section {
  background: var(--cream);
  padding: clamp(5rem, 9vh, 8rem) 0;
  overflow: hidden;
}

.profile-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.profile-text {
  max-width: clamp(420px, 34vw, 560px);
  margin: 0 auto;
}

.profile-label {
  font-size: clamp(0.65rem, 0.55vw + 0.5rem, 0.76rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(1.1rem, 1vw, 1.6rem);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.profile-heading {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.9rem, 1.1vw + 1.5rem, 3.2rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: clamp(1.4rem, 1.4vw, 2rem);
}

.profile-heading strong {
  font-weight: 500;
  display: block;
}

.profile-body {
  font-size: clamp(0.93rem, 0.3vw + 0.83rem, 1.05rem);
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: clamp(1.6rem, 1.8vw, 2.2rem);
}

.profile-stats {
  display: flex;
  gap: clamp(1.8rem, 2.4vw, 2.8rem);
  margin-top: clamp(2rem, 2vw, 2.8rem);
  padding-top: clamp(2rem, 2vw, 2.8rem);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  color: var(--blue);
  line-height: 1;
}

.profile-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.profile-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: center;
  margin-top: clamp(1rem, 2vw, 2.4rem);
}

.profile-photo {
  position: relative;
  z-index: 1;
  width: 85%;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-photo:hover {
  transform: scale(1.02) translateY(-4px);
}

.profile-photo img {
  width: 100%;
  display: block;
}

.profile-3d-canvas {
  width: 100%;
  height: 480px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .profile-3d-canvas:hover {
    transform: scale(1.035);
  }
}

.profile-3d-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 4px;
}

.badge-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  z-index: 3;
  pointer-events: none;
}

.badge-orbit-spin {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  animation: badgeOrbitSpin 9s linear infinite;
}

.badge-orbit-icon {
  position: absolute;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: badgeOrbitCounter 9s linear infinite;
}

.badge-orbit-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-orbit-icon-1 {
  top: -28px;
  left: 50%;
  margin-left: -28px;
}

.badge-orbit-icon-2 {
  top: 137px;
  left: 93.3%;
  margin-left: -28px;
  margin-top: -28px;
}

.badge-orbit-icon-3 {
  top: 137px;
  left: 6.7%;
  margin-left: -28px;
  margin-top: -28px;
}

@keyframes badgeOrbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes badgeOrbitCounter {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge-orbit-spin,
  .badge-orbit-icon {
    animation: none;
  }
}

/* ==========================================================
   15. CONTACT INTERACTIVE SECTION
   ========================================================== */
.contact-section {
  background: var(--cream);
  padding: 8rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-section .section-label {
  justify-content: center;
}

.contact-section .section-label::before {
  display: none;
}

.contact-heading {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--text-dark);
  line-height: 1;
  margin: 1rem 0 3.5rem;
  letter-spacing: 0.02em;
}

.contact-heading span {
  color: var(--blue);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  transition:
    gap 0.25s ease,
    color 0.25s ease;
}

.contact-email:hover {
  gap: 1.5rem;
  color: var(--blue-bright);
}

.contact-inner-container {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.contact-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100%, 1400px);
  height: 99%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* ==========================================================
   16. FOOTER
   ========================================================== */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-name {
  font-family: "DM Sans", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Dostosowanie paddingu stopki na mobile, aby tekst nie dotykał krawędzi ekranu */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

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

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.12s;
}
.reveal-delay-3 {
  transition-delay: 0.14s;
}
.reveal-delay-4 {
  transition-delay: 0.16s;
}
.reveal-delay-5 {
  transition-delay: 0.18s;
}

.reveal-clip {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s;
}

.reveal-clip.visible {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
}

.reveal-line {
  position: relative;
  overflow: hidden;
}

.reveal-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-line.visible::after {
  transform: scaleX(0);
  transform-origin: right;
}

.reveal-line img,
.reveal-line video {
  transition: transform 0.8s 0.3s ease;
  transform: scale(1.08);
}

.reveal-line.visible img,
.reveal-line.visible video {
  transform: scale(1);
}
#about,
#skills,
#portfolio,
#contact,
.profile-section,
.projlist-section,
.section-split,
.ticker-wrap {
  scroll-margin-top: 80px;
}

/* ==========================================================
   18. GENERAL MEDIA QUERIES (≤ 900px Landscape & Mobile)
   ========================================================== */

@media (max-width: 900px) {
  nav {
    padding: 0.9rem 0;
  }

  nav.scrolled {
    padding: 0.65rem 0;
  }

  .nav-inner-container {
    padding: 0 2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .hero-content {
    padding: 0 3rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-title {
    font-size: clamp(3rem, 12.8vw, 4.9rem);
    line-height: 0.9;
    white-space: normal;
  }

  .hero-sub {
    margin-top: 1.6rem;
    margin-bottom: 2.8rem;
    font-size: 0.7rem;
    line-height: 1.7;
    max-width: 80%;
  }

  .hero-scroll-hint {
    display: none;
  }

  .hero-cta {
    padding: 0.8rem 1.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .section-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .section-split.reverse {
    direction: ltr;
  }

  .split-media {
    min-height: 280px;
  }

  .parallax-inner {
    inset: 0;
  }

  .split-text {
    padding: 3rem 3rem;
  }

  .split-text-inner {
    max-width: 100%;
  }

  .skills-section {
    padding: 4rem 1rem;
  }

  .skills-grid {
    gap: 0.6rem;
  }

  .skill-chip {
    padding: 0.55rem 0.9rem;
    font-size: 0.76rem;
  }

  .video-strip {
    height: 320px;
    z-index: 5;
  }

  .projlist-section {
    padding: 5rem 0;
  }

  .projlist-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.85rem;
  }

  .projlist-preview {
    display: none;
  }

  .projlist-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.7rem;
    row-gap: 0.4rem;
    padding: 1.2rem 0;
  }

  .projlist-item:hover {
    padding-left: 0;
  }

  .projlist-num {
    grid-column: 1;
    grid-row: 1;
    font-size: 0.85rem;
  }

  .projlist-name {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .projlist-item:hover .projlist-name {
    font-size: 1.2rem;
  }

  .projlist-icon {
    grid-column: 3;
    grid-row: 1;
    width: 24px;
    height: 24px;
  }

  .projlist-icon svg {
    width: 14px;
    height: 14px;
  }

  .projlist-tags {
    grid-column: 2;
    grid-row: 2;
    gap: 0.4rem;
  }

  .projlist-tag {
    font-size: 0.58rem;
    padding: 0.18rem 0.5rem;
  }

  .projlist-arrow {
    grid-column: 4;
    grid-row: 1;
  }

  .profile-section {
    padding: 5rem 0;
  }

  .profile-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.85rem;
  }

  .profile-text {
    max-width: 100%;
  }

  .profile-photo-wrap {
    max-width: 360px;
    margin: 0 auto;
  }

  .profile-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .badge-orbit {
    width: 156px;
    height: 156px;
    margin: -78px 0 0 -78px;
  }

  .badge-orbit-icon {
    width: 40px;
    height: 40px;
  }

  .badge-orbit-icon-1 {
    top: -20px;
    left: 50%;
    margin-left: -20px;
  }

  .badge-orbit-icon-2 {
    top: 97px;
    left: 93.3%;
    margin-left: -20px;
    margin-top: -20px;
  }

  .badge-orbit-icon-3 {
    top: 97px;
    left: 6.7%;
    margin-left: -20px;
    margin-top: -20px;
  }

  .profile-3d-canvas {
    height: 340px;
  }

  .contact-section {
    padding: 6rem 1rem;
  }

  .contact-heading {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  footer {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding: 2rem 1rem;
  }

  /* ── BEZPIECZNE STYLE PODSTRONY PROJEKTU (RWD ≤ 900px) ── */
  .proj-live-link {
    width: 100%;
    justify-content: center;
  }
  .slider-nav {
    justify-content: center;
    width: 100%;
    gap: 1.2rem;
  }
  .slider-btn {
    width: 42px;
    height: 42px;
  }
  .slider-btn svg {
    width: 16px;
    height: 16px;
  }
  .slide-counter {
    font-size: 0.8rem;
  }
  .proj-stack-inner {
    padding: 0 1.5rem;
  }
}

/* ==========================================================
   19. PORTRAIT SMARTPHONES (≤ 480px)
   ========================================================== */
@media (max-width: 480px) {
  nav {
    padding: 0.8rem 0;
  }

  nav.scrolled {
    padding: 0.6rem 0;
  }

  .nav-inner-container {
    padding: 0 1.5rem;
  }

  .hero {
    min-height: auto;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12.8vw, 4rem);
    white-space: normal;
    line-height: 0.88;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta {
    width: auto;
  }

  .hero-greeting {
    margin-bottom: 2rem;
    font-size: 0.78rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .split-text {
    padding: 2.5rem 0.9rem;
  }

  .section-heading {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .skills-section {
    padding: 3.5rem 0.9rem;
  }

  .contact-section {
    padding: 3rem 0.9rem;
  }

  .contact-email {
    font-size: 0.9rem;
  }

  footer {
    padding: 1.8rem 0.9rem;
  }
}

/* ==========================================================
   20. ULTRA-MINI PORTABLE SCREEN (≤ 360px)
   ========================================================== */
@media (max-width: 360px) {
  nav {
    padding: 1.5rem 0;
  }

  .nav-inner-container {
    padding: 0 1.4rem;
  }

  .hero-content {
    padding: 0 1.4rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 15.2vw, 3.6rem);
    white-space: normal;
  }
  .split-text,
  .skills-section,
  .contact-section {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  footer {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }
}

/* ==========================================================
   21. SPECIFIC ORIENTATION & SCROLL SAFETY OVERRIDES
   ========================================================== */

/* Mobile Portrait Safeties */
@media (max-width: 767px) and (orientation: portrait) {
  .mobile-menu {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .mobile-menu ul {
    width: 100%;
    flex-shrink: 0;
  }
}

/* Ochrona dla mobile poziomego (Landscape) */
@media (max-height: 500px) {
  .mobile-menu {
    justify-content: center !important;
    padding-top: 4rem !important;
    padding-bottom: 1rem !important;
  }

  .mobile-menu ul {
    gap: 0 !important;
  }

  .mobile-menu ul li a {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
    padding: 0.1rem 0 !important;
  }

  .mobile-menu ul li a .num {
    font-size: 0.75rem !important;
    margin-right: 0.4rem !important;
  }
}

/* Landscape Tablet / iPad */
@media (max-height: 700px) and (min-width: 600px) {
  .mobile-menu {
    padding-top: 4rem;
    padding-bottom: 1rem;
    justify-content: center;
  }

  .mobile-menu ul li a {
    font-size: clamp(1.8rem, min(8vw, 15dvh), 4.5rem);
    line-height: 1.05;
    padding: 0.12em 0;
  }
}

/* Portrait Tablet / iPad */
@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .mobile-menu {
    padding-top: clamp(4rem, 6dvh, 5.5rem);
    padding-bottom: 1.5rem;
    justify-content: flex-start;
  }

  .mobile-menu ul li a {
    font-size: clamp(3rem, min(8vw, 9dvh), 5rem);
    line-height: 1.08;
    padding: 0.22em 0;
  }
}

/* Niskie laptopy */
@media (min-width: 901px) and (max-width: 1400px) and (orientation: landscape) and (max-height: 900px) {
  .mobile-menu {
    padding-top: 4rem;
    padding-bottom: 1rem;
    justify-content: flex-start;
  }

  .mobile-menu ul li a {
    font-size: clamp(2.3rem, min(6vw, 12dvh), 4.2rem);
    line-height: 1.05;
    padding: 0.16em 0;
  }
}

.proj-breadcrumb {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.proj-breadcrumb span {
  color: rgba(255, 255, 255, 0.3);
}

.proj-live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
  transition:
    background 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}
.proj-live-link:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}
.proj-live-link svg {
  width: 12px;
  height: 12px;
}

/* SLAJDER NAWIGACJA */
.slider-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.2s;
}
.slider-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.05);
}
.slider-btn svg {
  width: 18px;
  height: 18px;
}

.slide-counter {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

/* ==========================================================
   CAŁKOWICIE ZABEZPIECZONY I NAPRAWIONY SLIDER
   ========================================================== */

.slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden; /* Bezwzględnie ukrywa wystające slajdy */
  border-radius: 25px;
  border: 1px solid rgba(51, 51, 51, 0.32);
  direction: ltr !important; /* Wymusza standardowy kierunek od lewej do prawej, ignorując sekcje "reverse" */
}

.slider-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* Blokuje zawijanie slajdów pod spód */
  width: 100% !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  direction: ltr !important; /* Dodatkowe zabezpieczenie */
  touch-action: pan-y; /* pozwala na poziomy swipe palcem, nie blokując scrolla strony w pionie */
}

.slide {
  flex: 0 0 100% !important; /* Blokuje jakiekolwiek rozciąganie lub kurczenie */
  width: 100% !important;      /* Wymusza dokładnie pełną szerokość wrapa */
  min-width: 100% !important;  /* Zapobiega zwężaniu slajdu przez inne elementy */
  max-width: 100% !important;
  overflow: hidden;
  background: var(--navy-mid);
  box-sizing: border-box !important;
}

/* Wymuszenie na obrazkach w slajdach, by ZAWSZE pokrywały 100% szerokości i wysokości slajdu */
.slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Wypełnia cały slajd, ucinając ewentualny nadmiar bez zniekształcania */
  display: block !important;
}

/* ── METADANE PROJEKTU I STRUKTURA DOLNA ── */
.proj-stack {
  background: var(--cream);
  padding: 3.5rem 0;
}
.proj-stack-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0rem 2rem;
}
.proj-stack-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.proj-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.6rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.3s ease;
  height: 52px;
  box-sizing: border-box;
}

.stack-chip:hover {
  border-color: var(--blue-bright);
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.12);
}
.stack-chip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.proj-body {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.proj-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.proj-list li {
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.proj-list li:last-child {
  border-bottom: none;
}
.proj-list--tight li {
  padding: 0.35rem 0;
  border-bottom: none;
}
.proj-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 0.65em;
}

/* Responsywność oraz poprawki błędów na Mobile (≤ 1024px) */
@media (max-width: 1024px) {
  /* Rozciągnięcie przycisku na pełną szerokość lub stabilne dopasowanie */
  .proj-live-link {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  /* Wyśrodkowana i dopasowana nawigacja slidera na mobile */
  .slider-nav {
    justify-content: center;
    width: 100%;
    gap: 1.2rem;
    padding-top: 0.5rem;
  }

  /* Delikatnie mniejsze, zgrabniejsze przyciski na telefonach */
  .slider-btn {
    width: 42px;
    height: 42px;
  }
  .slider-btn svg {
    width: 16px;
    height: 16px;
  }
  .slide-counter {
    font-size: 0.8rem;
    min-width: 50px;
  }
  .proj-stack-inner {
    padding: 0 1.5rem;
  }
}

/* ==========================================================================
   CASE STUDY — product-style layout 
   ========================================================================== */

.case-study {
  background: var(--cream);
}

/* Hero */
.cs-hero {
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.cs-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.cs-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.cs-hero-text {
  max-width: 520px;
}

.cs-hero-eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.2rem;
}

.cs-hero-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.cs-hero-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2rem;
  max-width: 44ch;
}

.cs-hero-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.cs-hero-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.proj-archived-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 12px;
  width: fit-content;
}

.cs-gallery-note {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.45);
  font-style: italic;
  margin-top: 0.75rem;
  padding: 0 1rem;
}

/* Main body */
.cs-body {
  background: var(--cream);
}

.cs-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  max-width: 1364px;
  margin: 0 auto 2rem;
  padding: 5rem 4rem;
  background: var(--warm-white);
}

.cs-section {
  margin-bottom: 4rem;
}

.cs-section:last-child {
  margin-bottom: 0;
}

.cs-section-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cs-lead {
  font-family: "DM Sans", sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 1.2rem;
  max-width: 62ch;
  letter-spacing: -0.01em;
}

.case-study .proj-body {
  max-width: 62ch;
}

/* Process steps */
.cs-process {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cs-process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cs-process-num {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-top: 0.2rem;
}

.cs-process-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.cs-process-step .proj-body {
  margin-bottom: 0;
  font-size: 0.98rem;
}

/* Gallery */
.cs-gallery .slider-wrap {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cs-slider-nav {
  margin-top: 1.2rem;
  justify-content: flex-start;
}

.cs-slider-btn {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
}

.cs-slider-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.cs-slide-counter {
  color: var(--text-muted);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.slider-dot.active {
  background: var(--blue);
  transform: scale(1.3);
}

/* Sidebar */
.cs-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cs-sidebar-card {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.5rem;
}

.cs-sidebar-title {
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cs-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cs-sidebar-list li {
  font-family: "DM Sans", sans-serif;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.cs-sidebar-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* Next project — compact card */
.cs-next {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto 0;
  padding: 2.5rem 1.5rem;
  text-decoration: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  transition: opacity 0.2s;
}

.cs-next:hover {
  opacity: 0.75;
}

.cs-next-thumb {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cs-next-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-next-info {
  flex: 1;
}

.cs-next-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.cs-next-title {
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.cs-next-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cs-next-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition:
    transform 0.2s,
    color 0.2s;
}

.cs-next:hover .cs-next-arrow {
  transform: translateX(4px);
  color: var(--blue);
}

/* Case study responsive */
@media (max-width: 1024px) {
  .cs-hero {
    padding-top: 6.5rem;
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .cs-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }

  .cs-hero-sub {
    max-width: 100%;
  }

  .cs-main-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem 2rem;
  }

  .cs-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .cs-sidebar-card {
    flex: 1 1 240px;
  }

  .cs-next {
    padding: 1.5rem 1.5rem 4rem;
  }

  /* Galeria slidera na pełną szerokość ekranu (full-bleed) na mobile */
  .cs-gallery {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }

  .cs-gallery .slider-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .cs-gallery .slide {
    aspect-ratio: auto;
  }

  .cs-gallery .cs-slider-nav {
    padding: 1.2rem 1.5rem 0;
  }
}

/* ==========================================================
   RESPONSIVE STACK CHIPS (Złagodzone dopasowanie mobile)
   ========================================================== */
@media (max-width: 900px) {
  .stack-chip {
    height: 47px;                  /* Delikatne zmniejszenie z 52px (o połowę mniej niż wcześniej) */
    padding: 0.75rem 1.35rem;      /* Łagodniejszy padding */
    font-size: 0.9rem;             /* Czcionka minimalnie mniejsza z 0.95rem na 0.9rem */
    gap: 0.7rem;
  }

  .stack-chip img {
    width: 26px;                   /* Ikona zmniejszona subtelnie z 30px na 26px */
    height: 26px;
  }
}

@media (max-width: 480px) {
  .stack-chip {
    height: 44px;                  /* Dopasowanie na mniejsze smartfony */
    padding: 0.65rem 1.15rem;
    font-size: 0.85rem;
    gap: 0.6rem;
  }

  .stack-chip img {
    width: 22px;                   /* Ikona 22px na najmniejsze ekrany */
    height: 22px;
  }
}

/* SHADER BACKGROUND CONTAINER */

#shader-bg{
    position:absolute;
    inset:0;
    z-index:0;
}
