.lead-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0.8;
  font-family: var(--font-mono);
}

/* ============================================
   PORTFOLIO — INDIGO DEPTH THEME
   Colors: Deep Navy + Warm Purple Palette
   ============================================ */

/* Logo Image Styles */
.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(150, 113, 225, 0.6));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo-img:hover {
  filter: drop-shadow(0 0 16px rgba(150, 113, 225, 0.9));
  transform: scale(1.08);
}

.footer-logo-img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(150, 113, 225, 0.6));
  opacity: 1;
}

/* ---------- TOKENS ---------- */
:root {
  /* Core Palette — ciepły fiolet z logo */
  --bg-deepest: #000014;
  --bg-dark: #0A0A28;
  --bg-navy: #14143C;
  --bg-card: #1E1E50;
  --accent-indigo: #6C5CE7;
  --accent-violet: #9671E1;
  --accent-lilac: #B8A0E8;
  --accent-pale: #D1ADF2;
  --accent-red: #601428;

  /* Typography */
  --text-white: #F3F3FA;
  --text-primary: #E8E8FF;
  --text-muted: #C5C5E6;
  --text-dim: #6868B0;

  /* Borders & Surfaces */
  --border: rgba(150, 113, 225, 0.15);
  --border-glow: rgba(108, 92, 231, 0.4);
  --surface-glass: rgba(30, 30, 80, 0.55);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Zen Dots', cursive;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --max-w: 1120px;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;

  /* Spacing system (Point 20 from Audit) */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 2.5rem;    /* 40px */
  --space-lg: 6.25rem;   /* 100px */
  --space-xl: 7.5rem;    /* 120px */

  /* Shiny CTA Variables - Strong Violet Highlight */
  --shiny-cta-bg: #000000;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: #7c3aed;
  --shiny-cta-highlight-subtle: #a78bfa;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deepest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- BACKGROUND LAYERS ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  contain: strict;
}

.bg-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(150, 113, 225, 0.4) 0%, rgba(108, 92, 231, 0.2) 40%, transparent 70%);
  border-radius: 50%;
}

.bg-glow::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(255, 162, 236, 0.45) 0%, rgba(150, 113, 225, 0.22) 40%, transparent 70%);
  border-radius: 50%;
}

/* Gwiezdne tło (Stars/Dust pattern) inspirowane zrzutem z 'Liquid Brokers' */
.grid-bg {
  display: none;
}

/* ---------- UTILITY ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.glass {
  background: var(--surface-glass);
  border: 1px solid rgba(150, 113, 225, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(150, 113, 225, 0.35);
  color: var(--accent-pale);
  background: rgba(150, 113, 225, 0.08);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--accent-violet);
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
  text-shadow: 0 0 16px rgba(209, 173, 242, 0.4);
}

.section-title {
  font-size: clamp(2rem, calc(4vw + 0.5rem), 3.5rem);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 40px;
}

/* Gradient headline text */
.gradient-text {
  background: linear-gradient(135deg, #F0D8FF 0%, #D8B8F5 25%, #A882E8 50%, #7A6CF0 75%, #C4AEED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* filter: brightness() removed - powodował dodatkowy composite pass przy każdym repaincie */
}

/* Emhance-style pill word highlights */
/* .pill-word remnants removed */

/* ---------- BUTTONS (GALAXY BUTTON) ---------- */
.galaxy-button {
  display: inline-flex;
  position: relative;
  z-index: 10;
  border-radius: 100px;
}

.galaxy-button>button,
.galaxy-button>a {
  all: unset;
  display: flex;
  position: relative;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  line-height: 1;
  background: linear-gradient(135deg, var(--bg-card) 0%, #2A1E5E 100%);
  color: white;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  border: 1px solid rgba(150, 113, 225, 0.35);
  box-shadow: inset 0 0 12px rgba(150, 113, 225, 0.5), 0 0 20px rgba(150, 113, 225, 0.15);
}

.galaxy-button>button:hover,
.galaxy-button>a:hover {
  transform: scale(1.05);
  box-shadow: inset 0 0 25px rgba(150, 113, 225, 0.9), 0 0 35px rgba(209, 173, 242, 0.5), 0 0 60px rgba(150, 113, 225, 0.2);
}

.galaxy-button .backdrop {
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--bg-card) 0%, #2A1E5E 100%);
  z-index: 2;
}

.galaxy-button .spark {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(150, 113, 225, 0.6) 0%, transparent 70%);
  z-index: 1;
  will-change: transform;
}

.galaxy-button:hover .spark {
  animation: spinSpark 2s linear infinite;
}

@keyframes spinSpark {
  100% {
    transform: rotate(360deg);
  }
}

/* ═══ ═══ ═══  OFFER BUTTON (Moja Oferta) — UIverse Style ═══ ═══ ═══  */
.cssbuttons-io-button {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  padding: 0.8em 1.5em 0.8em 1.2em;
  color: white;
  background: linear-gradient(0deg,
      rgba(77, 54, 208, 1) 0%,
      rgba(132, 116, 254, 1) 100%);
  border: none;
  box-shadow: 0 0.7em 1.5em -0.5em #4d36d0be;
  letter-spacing: 0.05em;
  border-radius: 20em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cssbuttons-io-button svg {
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

.cssbuttons-io-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.8em 2.5em -0.5em rgba(77, 54, 208, 0.7), 0 0 30px rgba(132, 116, 254, 0.5);
  filter: brightness(1.1);
}

.cssbuttons-io-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pale));
  filter: blur(24px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cssbuttons-io-button:hover::after {
  opacity: 0.6;
}

.cssbuttons-io-button:active {
  transform: translateY(0);
  box-shadow: 0 0.3em 1em -0.5em #4d36d0be;
}

.galaxy-button .galaxy__container,
.galaxy-button .galaxy {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s;
}

.galaxy-button>button:hover .galaxy__container,
.galaxy-button>button:hover .galaxy,
.galaxy-button>a:hover .galaxy__container,
.galaxy-button>a:hover .galaxy {
  opacity: 1;
}

.galaxy-button .star {
  display: block;
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
}

.galaxy-button .star--static:nth-child(1) {
  top: 20%;
  left: 15%;
  opacity: 0.8;
}

.galaxy-button .star--static:nth-child(2) {
  top: 70%;
  left: 80%;
  opacity: 0.5;
}

.galaxy-button .star--static:nth-child(3) {
  top: 40%;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0.3;
}

.galaxy-button .star--static:nth-child(4) {
  top: 80%;
  left: 30%;
  opacity: 0.6;
}

.galaxy-button .galaxy__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform-origin: center;
  transform: translate(-50%, -50%);
  animation: spinGalaxy 20s linear infinite;
  /* Slowed down for better perf and feel */
  will-change: transform;
}

@keyframes spinGalaxy {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.galaxy-button .galaxy__ring .star {
  opacity: 0.6;
}

.galaxy-button .galaxy__ring .star:nth-child(even) {
  top: 20%;
  left: 60%;
  width: 1px;
  height: 1px;
  animation: pulseStar 2s infinite;
}

.galaxy-button .galaxy__ring .star:nth-child(odd) {
  top: 80%;
  left: 30%;
  animation: pulseStar 3s infinite;
}

.galaxy-button .galaxy__ring .star:nth-child(3n) {
  top: 40%;
  left: 80%;
  opacity: 0.3;
}

.galaxy-button .galaxy__ring .star:nth-child(4n) {
  top: 10%;
  left: 40%;
}

.galaxy-button .galaxy__ring .star:nth-child(5n) {
  top: 90%;
  left: 70%;
  width: 1.5px;
  height: 1.5px;
}

@keyframes pulseStar {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
}

/* Optimization: Only animate stars inside ring when group is visible (hovered) */
.galaxy-button .star {
  animation-play-state: paused !important;
}

.galaxy-button:hover .star {
  animation-play-state: running !important;
}

.galaxy-button .galaxy__ring {
  animation-play-state: paused;
}

.galaxy-button:hover .galaxy__ring {
  animation-play-state: running;
}

.galaxy-button .text {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.galaxy-button .bodydrop {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-violet), var(--accent-pale));
  filter: blur(24px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.galaxy-button:hover .bodydrop {
  opacity: 0.6;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 64px);
  max-width: 1320px;
  background: rgba(10, 10, 30, 0.8);
  /* backdrop-filter: blur zredukowany 24px→12px - navbar to szeroki element */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 113, 225, 0.25);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px rgba(150, 113, 225, 0.08);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--accent-indigo);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 0.3s;
}

.nav-links a:hover,
.nav-links a.active,
.nav-link-dropdown.active {
  color: var(--accent-pale) !important;
  text-shadow: 0 0 20px rgba(150, 113, 225, 0.5);
}

.nav-link-dropdown.active::after {
  border-color: var(--accent-pale) !important;
}

/* Navbar Dropdown */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-content {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(30, 30, 80, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(150, 113, 225, 0.3);
  border-radius: 16px;
  padding: 8px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  /* Don't animate 'all' — only what's needed (avoids backdrop-filter repaint on every frame) */
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(150, 113, 225, 0.1);
  z-index: 100;
}

.nav-dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 15px;
  /* Bridge gap for hover stability */
}

.nav-item-dropdown:hover .nav-dropdown-content,
.nav-item-dropdown.is-open .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted) !important;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s !important;
}

.nav-dropdown-content a:hover {
  background: rgba(150, 113, 225, 0.15);
  color: #fff !important;
  text-shadow: none !important;
}

.nav-link-dropdown {
  all: unset;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  font-weight: 600 !important;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 0.3s;
  cursor: pointer;
}

.nav-link-dropdown::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-lilac);
  border-bottom: 2px solid var(--accent-lilac);
  transform: rotate(45deg);
  margin-top: -3px;
  margin-left: 6px;
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.nav-item-dropdown:hover .nav-link-dropdown,
.nav-item-dropdown.is-open .nav-link-dropdown {
  color: #fff !important;
}

.nav-item-dropdown:hover .nav-link-dropdown::after,
.nav-item-dropdown.is-open .nav-link-dropdown::after {
  transform: rotate(-135deg) translateY(-2px);
  opacity: 1;
  border-color: #fff;
  filter: drop-shadow(0 0 8px var(--accent-pale));
}

.nav-cta {
  background: var(--accent-indigo) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  background: transparent;
  content-visibility: auto;
  contain-intrinsic-size: 0 100vh;
}

/* Hero glow removed to reduce clutter around the main headline as requested */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center the eyebrow text */
  gap: 12px;
  margin-bottom: 28px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 16px var(--accent-violet), 0 0 32px rgba(209, 173, 242, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, calc(8vw + 1rem), 9.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  opacity: 0.95;
  margin-bottom: 40px;
  text-transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-line {
  display: block;
  white-space: nowrap;
  position: relative;
  background: linear-gradient(135deg, #FFA2EC, var(--accent-violet), var(--accent-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-line:last-child::after {
  content: '';
  position: absolute;
  top: 0.18em;
  /* Adjusted position to be closer to the letter */
  right: 0.08em;
  width: 0.22em;
  height: 0.08em;
  background-color: var(--accent-indigo);
  /* Matched the end color of the 'n' gradient */
  transform: rotate(-15deg);
  border-radius: 2px;
  /* Glow removed as previously requested */
  /* Fix WebKit text-clip inheritance bugs that hide the adjacent 'n' character */
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: initial !important;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  color: var(--text-white);
  line-height: 1.65;
  max-width: 65ch;
  margin: 0 auto 40px auto;
  /* Centered */
}

.hero-text {
  position: relative;
  z-index: 20;
  /* High z-index to stay on top of all glow layers */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: 80px;
  /* Adjusted from 140px */
}

.hero-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-stats {
  display: flex;
  justify-content: center;
  /* Centered stats */
  gap: 60px;
  margin-top: 56px;
  padding-top: 40px;
}

.stat-val {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-white);
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero emotion AI image wrap */
.hero-photo-wrap {
  position: relative;
  z-index: 5;
  /* Lower than text z-index: 20 */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* ZdjĂ„â„˘cie spoczywa na dole kontenera */
  width: 100%;
  max-width: 1400px;
  height: 850px;
  margin-top: -60px;

}

.emotion-ai-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  /* Wypełnia całe hero-photo-wrap (850px) */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* PostaĂ„â€ˇ wyrasta z dołu */
  cursor: default;
  z-index: 10;
  /* Prevent blue selection box during drag interaction */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Base Silhouette Layer */
.emotion-img-base {
  position: relative;
  /* Now it's part of the standard DOM flow! */
  object-fit: contain;
  object-position: bottom;
  /* Waćąć˝ne: przykleja zdjĂ„â„˘cie idealnie do dolnej krawĂ„â„˘dzi tak jak w referencji Dribbble */
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  /* Glowing drop-shadow to emphasize the clean reveal */
  filter: drop-shadow(0 0 20px rgba(150, 113, 225, 0.5));
}

/* Wrapper for clean image to use robust clip-path spotlight */
.emotion-img-clean-wrapper {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  animation: floatImage 8s ease-in-out infinite;

  /* Hardcoded fallback spotlight before JS takes over */
  clip-path: circle(0px at 50% 50%);
  -webkit-clip-path: circle(0px at 50% 50%);
  transition: clip-path 0.1s ease-out;
}

/* Clean Hover Layer inside wrapper */
.emotion-img-clean {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  /* To samo dla czystego zdjĂ„â„˘cia */
  /* Glow for the clean image */
  filter: drop-shadow(0 0 30px rgba(150, 113, 225, 0.5));
}

@keyframes glitchLine {
  0% {
    transform: translateY(0) skewX(0);
    filter: brightness(0.6) hue-rotate(180deg);
  }

  2% {
    transform: translateY(0) skewX(5deg);
    filter: brightness(1.2) hue-rotate(220deg);
  }

  4% {
    transform: translateY(0) skewX(-5deg);
    filter: brightness(0.6) hue-rotate(180deg);
  }

  6% {
    transform: translateY(0) skewX(0);
  }

  100% {
    transform: translateY(0) skewX(0);
  }
}

@keyframes floatImage {

  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }

  50% {
    transform: translateY(-10px) translateZ(0);
  }
}

/* Simple CSS Sphere Glow - matches page style */
.sphere-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%) translateZ(0);
  background: radial-gradient(circle at center, rgba(150, 113, 225, 0.5) 0%, rgba(108, 92, 231, 0.15) 50%, transparent 75%);
  z-index: 1;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  will-change: transform;
}

/* Bio-Platform 3D Labels (Bio-Computing Style) */
.bio-label {
  position: absolute;
  z-index: 100;
  display: flex;
  align-items: center;
  pointer-events: auto;
  animation: bioLabelFadeIn 1s ease forwards;
  opacity: 0;
}

@keyframes bioLabelFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left labels: pill then line going right toward center */
.bio-label--left {
  flex-direction: row;
  left: 2% !important;
  width: 48%;
}

/* Right labels: line going left then pill */
.bio-label--right {
  flex-direction: row-reverse;
  right: 2% !important;
  width: 48%;
}

.bio-label-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(10, 10, 30, 0.9);
  border: 1.5px solid var(--accent-violet);
  border-radius: 100px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  /* blur(6px) zamiast 12px — mały element, połowa kosztu GPU */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.bio-label-pill:hover {
  transform: scale(1.06);
  border-color: rgba(209, 173, 242, 0.6);
  box-shadow: 0 8px 30px rgba(150, 113, 225, 0.25), inset 0 0 10px rgba(150, 113, 225, 0.1);
}

.bio-label-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-indigo);
}

.bio-label-icon--rotate {
  animation: spinIcon 3s linear infinite;
}

@keyframes spinIcon {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.bio-label-icon--pulse {
  animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.15);
    filter: brightness(1.3) drop-shadow(0 0 5px rgba(150, 113, 225, 0.4));
  }
}

.bio-label-icon--float {
  animation: floatIcon 2s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* Prosta linia łĂ„â€¦czĂ„â€¦ca pigułkĂ„â„˘ z bryłĂ„â€¦ */
.bio-label-connector {
  display: none;
}

/* Stagger animation delays */
.bio-label:nth-child(2) {
  animation-delay: 0.15s;
}

.bio-label:nth-child(3) {
  animation-delay: 0.3s;
}

.bio-label:nth-child(4) {
  animation-delay: 0.45s;
}

.bio-label:nth-child(5) {
  animation-delay: 0.6s;
}

/* Tag Positioning and Animations */
/* Old tag definitions removed to avoid conflicts */

/* Bottom Profile Section bar with galaxy button */
.emotion-title-bar {
  position: absolute;
  bottom: 0px;
  /* Aligned to base */
  left: 0;
  width: 100%;
  padding: 50px 0 30px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to top, var(--bg-deepest) 0%, rgba(10, 10, 40, 0.9) 60%, transparent 100%);
  border-bottom: 2px solid rgba(150, 113, 225, 0.3);
}

.emotion-title-bar .galaxy-button {
  transform: scale(1.1);
  /* Slightly larger for emphasis */
}

/* Ensure the button text matches displays correctly */
.emotion-title-bar .text {
  font-family: var(--font-display) !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.1em !important;
}

/* ---------- ABOUT ME SECTION (FINAL CUSTOM) ---------- */
.about-section {
  padding: var(--space-xl) 0;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-grid-custom {
  display: grid;
  grid-template-columns: 1fr 580px;
  /* Spacjowanie: tekst (elastyczny) | wideo (stałe) */
  gap: 80px;
  align-items: center;
}

.about-vertical-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 20px;
}

.about-vertical-col.right {
  text-align: right;
  align-items: flex-end;
}

.about-p-normal {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 400;
}

/* Ă˘â€ťâ‚¬Ă˘â€ťâ‚¬ NOWA SEKCJA O MNIE Ă˘â€ťâ‚¬Ă˘â€ťâ‚¬ */
.about-col-new {
  display: flex;
  flex-direction: column;
  padding-top: 60px;
}

.about-col-new.right {
  text-align: right;
  align-items: flex-end;
}

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 16px;
  display: block;
}

.about-block-heading {
  font-family: var(--font-sans);
  font-size: 5rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--text-white);
  margin-bottom: 24px;
}

.about-divider {
  width: 140px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-pale), transparent);
  border-radius: 2px;
  margin-bottom: 32px;
  box-shadow: 0 0 15px rgba(150, 113, 225, 0.4);
}

.about-block-text {
  font-size: 1.8rem;
  color: var(--text-white);
  line-height: 1.65;
  max-width: 65ch;
  margin-bottom: 20px;
  font-weight: 400;
}

.about-goals-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.about-goal-item {
  padding: 18px 20px;
  background: rgba(150, 113, 225, 0.05);
  border: 1px solid rgba(150, 113, 225, 0.12);
  border-radius: 14px;
  text-align: right;
  transition: border-color 0.3s, background 0.3s;
}

.about-goal-item:hover {
  border-color: rgba(150, 113, 225, 0.3);
  background: rgba(150, 113, 225, 0.08);
}

.about-goal-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.about-goal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-vertical-col.right .about-p-normal:hover {
  transform: translateX(-4px);
}

/* Cele projektu */
.about-vertical-col.left .section-label {
  font-size: 1.55rem;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-pale) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-vertical-col.left .section-label svg {
  color: var(--accent-pale);
  filter: drop-shadow(0 0 8px rgba(209, 173, 242, 0.6));
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
}

.about-vertical-col.left .about-p-normal {
  font-size: 0.88rem;
  color: rgba(168, 168, 216, 0.75);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.about-vertical-col.left .about-p-normal:hover {
  color: var(--text-muted);
  transform: none;
  text-shadow: none;
}

/* Problemy biznesowe */
.about-vertical-col.right .section-label {
  font-size: 1.55rem;
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: row-reverse;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent-violet) 0%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-vertical-col.right .section-label svg {
  color: var(--accent-violet);
  filter: drop-shadow(0 0 8px rgba(150, 113, 225, 0.6));
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
}

.about-vertical-col.right .about-p-normal {
  font-size: 0.88rem;
  color: rgba(168, 168, 216, 0.75);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.about-vertical-col.right .about-p-normal:hover {
  color: var(--text-muted);
  transform: none;
  text-shadow: none;
}

.about-photo-center {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 120px;
}

.about-photo-frame {
  width: 100%;
  max-width: 580px;
  aspect-ratio: 4/5;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(150, 113, 225, 0.12);
  /* Fix for border-radius overflow bleeding on videos in WebKit */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.about-main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 40px;
}

/* Hide any native video controls that might appear (like PiP) */
.about-main-video::-webkit-media-controls {
  display: none !important;
}

.about-main-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.photo-placeholder-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  z-index: 2;
}

.inner-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(150, 113, 225, 0.2) 0%, transparent 70%);
  filter: blur(40px);
}

.about-wind {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 40px;
  overflow: hidden;
  /* Izoluj repainting efektu wiatru od reszty strony */
  contain: paint;
}

.about-wind::before,
.about-wind::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 220%;
  height: 140%;
  background: repeating-linear-gradient(-30deg,
      transparent 0px,
      transparent 40px,
      rgba(209, 173, 242, 0.04) 40px,
      rgba(209, 173, 242, 0.04) 41px,
      transparent 41px,
      transparent 80px);
  animation: windPass 6s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.about-wind::after {
  left: -80%;
  animation-delay: -3s;
  animation-duration: 9s;
  opacity: 0.6;
}

@keyframes windPass {
  0% {
    transform: translateX(-10%);
  }

  100% {
    transform: translateX(30%);
  }
}

@media (max-width: 1200px) {
  .about-grid-custom {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-vertical-col.right {
    grid-column: span 2;
    text-align: left;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .about-grid-custom {
    grid-template-columns: 1fr;
  }

  .about-vertical-col {
    text-align: center;
    align-items: center;
  }

  .about-vertical-col.right {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .about-grid-custom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-main-text .hero-sub {
    text-align: center !important;
    margin: 24px auto 0 !important;
  }

  .about-photo-center {
    order: -1;
  }

  .about-vertical-col.left .about-p-normal,
  .about-vertical-col.right .about-p-normal {
    border-left: 2px solid rgba(209, 173, 242, 0.3);
    border-right: none;
    padding-left: 16px;
    padding-right: 0;
    text-align: left;
  }

  .about-vertical-col.right .about-p-normal {
    border-left-color: rgba(150, 113, 225, 0.3);
  }

  .about-vertical-col.left .section-label,
  .about-vertical-col.right .section-label {
    flex-direction: row;
    justify-content: flex-start;
  }
}

/* ---------- AI PLATFORM SECTION ---------- */
.ai-platform-section {
  padding: 100px 0;
}

/* Głć‚ł‚wny układ: 3 kolumny */
.ai-layout {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 0;
}

/* Lewa kolumna: siatka 2x2 kart */
.ai-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 0 0 auto;
  width: 380px;
}

.ai-card {
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(20, 12, 50, 0.7);
  border: 1px solid rgba(150, 113, 225, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.ai-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(150, 113, 225, 0.18);
  border-color: rgba(150, 113, 225, 0.4);
}

.ai-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.ai-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ćąłˇrodek: SVG linie łĂ„â€¦czĂ„â€¦ce */
.ai-connectors {
  flex: 1;
  height: 500px;
  min-width: 160px;
}

.ai-connectors svg {
  width: 100%;
  height: 100%;
}

/* Prawa kolumna: obraz */
.ai-image-wrap {
  flex: 0 0 auto;
}

.ai-image-wrap img {
  width: 440px;
  height: auto;
  animation: aiFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(150, 113, 225, 0.5));
}

@keyframes aiFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

.divider {
  display: none;
}

/* ---------- AI BENTO SECTION ---------- */
.ai-bento-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.bento-header {
  margin-bottom: 80px;
  max-width: 900px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 340px);
  gap: 24px;
}

.bento-card {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Nie animuj 'all' — powoduje repaint kaćąć˝dej właściwości CSS przy hover */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.3s ease;
  overflow: hidden;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.bento-card.large {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(124, 102, 255, 0.15) 0%, rgba(15, 15, 35, 0.6) 50%, rgba(168, 127, 243, 0.1) 100%);
}

.bento-card.large::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(124, 102, 255, 0.2) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
  /* will-change usuniĂ„â„˘ty — statyczny dekoracyjny element, tworzył zbĂ„â„˘dnĂ„â€¦ warstwĂ„â„˘ GPU */
  transform: translateZ(0);
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-icon {
  position: absolute;
  top: 48px;
  left: 48px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.4s;
  z-index: 2;
}

.bento-icon svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.bento-card:hover .bento-icon {
  transform: scale(1.1) translateY(-5px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bento-content {
  position: relative;
  z-index: 2;
}

.bento-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bento-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 90%;
}

.bento-badge {
  position: absolute;
  top: 48px;
  right: 48px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  z-index: 2;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-card.large,
  .bento-card.wide {
    grid-column: span 1;
  }

  .bento-card {
    height: 300px;
  }
}

/* ---------- OFFER SECTION ---------- */
.offer-section {
  padding: var(--space-lg) 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 56px;
  border: 1px solid rgba(150, 113, 225, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(150, 113, 225, 0.12);
}

.offer-card {
  padding: 44px 36px;
  background: linear-gradient(135deg, rgba(30, 30, 80, 0.7), rgba(55, 30, 100, 0.4));
  transition: background 0.3s;
  position: relative;
}

.offer-card:hover {
  background: rgba(150, 113, 225, 0.08);
  border-color: rgba(150, 113, 225, 0.3);
  box-shadow: 0 0 30px rgba(150, 113, 225, 0.08);
}

.offer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-right: 1px solid var(--border);
  pointer-events: none;
}

.offer-card:last-child::after {
  display: none;
}

.offer-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(150, 113, 225, 0.18);
  border: 1px solid rgba(150, 113, 225, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.offer-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--accent-violet);
}

.offer-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.offer-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.offer-list {
  list-style: none;
  margin-top: 18px;
}

.offer-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-list li::before {
  content: '→';
  color: var(--accent-indigo);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ---------- PROJECTS SECTION ---------- */
.projects-section {
  padding: 70px 0;
  overflow: hidden;
  /* zapobiega wycieku marquee do sĂ„â€¦siedniej sekcji */
  position: relative;
  scroll-margin-top: -80px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(150, 113, 225, 0.15);
  /* Nie animuj 'all' — to powoduje repaint 28 kart na kaćąć˝dy hover */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 560px;
  padding: 0;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(150, 113, 225, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(150, 113, 225, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(150, 113, 225, 0.15);
  /* will-change w :hover jest za pć‚ł‚ćążno — przeglĂ„â€¦darka i tak promuje warstwĂ„â„˘ dopiero po hover */
}

.project-card:hover::before {
  opacity: 1;
}

.project-head {
  position: absolute;
  top: 28px;
  left: 24px;
  right: 24px;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  z-index: 10;
}

.project-btn-mini {
  position: relative;
  width: auto;
  min-width: 110px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: rgba(10, 10, 30, 0.7);
  border: 1px solid rgba(150, 113, 225, 0.4);
  border-radius: 100px;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(150, 113, 225, 0.2);
  margin: 0;
}

.project-btn-mini .spark-mini {
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 0deg, transparent 60%, var(--accent-pale) 80%, var(--accent-violet) 100%);
  animation: spinSpark 2s linear infinite;
  animation-play-state: paused;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

.project-card:hover .project-btn-mini .spark-mini {
  animation-play-state: running;
  opacity: 1;
}

.project-card:hover .project-btn-mini {
  transform: scale(1.05);
  border-color: var(--accent-pale);
  box-shadow: 0 0 25px rgba(150, 113, 225, 0.5);
}

.project-card:hover .project-btn-mini .spark-mini {
  opacity: 1;
}

.project-btn-mini .text-mini {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-btn-mini .backdrop-mini {
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  border-radius: 100px;
  z-index: 2;
}

.project-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.project-img img,
.project-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img img,
.project-card:hover .project-img video {
  transform: scale(1.08);
}

.project-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 32px 32px;
  background: linear-gradient(to top, rgba(0, 0, 15, 0.98) 0%, rgba(0, 0, 15, 0.6) 50%, transparent 100%);
  z-index: 5;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-content {
  transform: translateY(-5px);
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.project-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  opacity: 0.8;
}

.card-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 100px;
  background: rgba(10, 10, 30, 0.7);
  border: 1px solid rgba(150, 113, 225, 0.4);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(150, 113, 225, 0.2);
}

.card-tag .spark-mini {
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 0deg, transparent 60%, var(--accent-pale) 80%, var(--accent-violet) 100%);
  animation: spinSpark 3s linear infinite;
  animation-play-state: paused;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .card-tag .spark-mini {
  animation-play-state: running;
  opacity: 1;
}

.card-tag .backdrop-mini {
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  border-radius: 100px;
  z-index: 2;
}

.card-tag .tag-text-wrapper {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 8px var(--accent-violet);
}

/* ---------- PROCESS SECTION ---------- */
.process-section {
  padding: 100px 0;
  background: var(--bg-dark);
}

/* ---------- TRANSITION SECTION (CASE STUDY PHILOSOPHY) ---------- */
.cs-transition {
  padding: 100px 0;
  background: var(--bg-deepest);
  position: relative;
  overflow: hidden;
}

.cs-transition::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(150, 113, 225, 0.3), transparent);
}

.cs-transition-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cs-transition-header {
  font-family: var(--font-mono);
  color: var(--accent-violet);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  margin-bottom: 24px;
}

.cs-transition-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.cs-transition-title span {
  color: var(--accent-violet);
  font-style: italic;
  font-family: var(--font-outfit);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-item {
  padding: 44px 32px;
  background: linear-gradient(135deg, rgba(30, 30, 80, 0.5), rgba(50, 30, 90, 0.25));
  position: relative;
  transition: background 0.3s;
}

.step-item:hover {
  background: rgba(150, 113, 225, 0.12);
}

.step-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-right: 1px solid rgba(150, 113, 225, 0.2);
  pointer-events: none;
}

.step-item:last-child::after {
  display: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-pale);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}

.step-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.step-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- TRUST SECTION ---------- */
.trust-section {
  padding: 80px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 48px 56px;
  border-radius: var(--radius-lg);
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.client-logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.client-logo:hover {
  opacity: 1;
  color: var(--text-white);
}

.tools-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 6px 14px;
  border: 1px solid rgba(150, 113, 225, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s;
}

.tool-chip:hover {
  border-color: var(--accent-violet);
  color: var(--accent-pale);
  box-shadow: 0 0 15px rgba(150, 113, 225, 0.15);
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
  padding: 100px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.faq-item {
  padding: 32px 36px;
  border-radius: var(--radius-md);
  transition: border-color 0.25s;
}

.faq-item:hover {
  border-color: rgba(150, 113, 225, 0.5);
  box-shadow: 0 0 25px rgba(150, 113, 225, 0.08);
}

.faq-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.faq-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- TESTIMONIAL ---------- */
.testimonial-section {
  padding: 80px 0;
}

.testimonial-card {
  padding: 56px 64px;
  border-radius: var(--radius-lg);
  position: relative;
}

.quote-mark {
  font-size: 5rem;
  line-height: 0.6;
  color: var(--accent-indigo);
  font-family: serif;
  margin-bottom: 24px;
  opacity: 0.5;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  max-width: 700px;
  margin-bottom: 36px;
}

.quote-author strong {
  color: var(--text-white);
  font-size: 0.9rem;
}

.quote-author span {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
  padding: 100px 0 80px;
  background: var(--bg-dark);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(150, 113, 225, 0.25) 0%, rgba(209, 173, 242, 0.1) 40%, transparent 70%);
  pointer-events: none;
}

.contact-section .section-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FFA2EC, var(--accent-violet), var(--accent-indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: none;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

.contact-info-block h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.contact-info-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-direct a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.contact-direct a:hover {
  color: var(--text-white);
}

.contact-direct a svg {
  width: 22px;
  height: 22px;
  color: var(--accent-indigo);
  flex-shrink: 0;
}

.socials-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.social-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--accent-violet);
  color: var(--accent-pale);
  background: rgba(150, 113, 225, 0.12);
  box-shadow: 0 0 20px rgba(150, 113, 225, 0.15);
}

/* Contact Form */
.contact-form {
  border-radius: var(--radius-lg);
  padding: 52px;
  border: 1px solid rgba(150, 113, 225, 0.45);
  box-shadow: 0 0 60px rgba(150, 113, 225, 0.15), 0 0 120px rgba(209, 173, 242, 0.08);
  background: linear-gradient(135deg, rgba(24, 18, 65, 0.92), rgba(40, 18, 75, 0.88));
  /* backdrop-filter: blur zredukowany 20px→8px */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: -32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 20, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  transition: color 0.25s;
}

/* Active State (Focused, Typed in, or Autofilled): Turns Clean White */
.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
  background: #ffffff;
  color: #05051a;
  border-color: var(--accent-violet);
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 20px rgba(150, 113, 225, 0.2);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: rgba(5, 5, 26, 0.45);
}

/* Beautiful White theme autofill styles */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus,
.form-group input:autofill,
.form-group input:autofill:hover,
.form-group input:autofill:focus,
.form-group textarea:autofill,
.form-group textarea:autofill:hover,
.form-group textarea:autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #05051a !important;
  color: #05051a !important;
  caret-color: #05051a;
  border-color: var(--accent-violet) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:focus,
.form-group input:autofill:focus,
.form-group textarea:autofill:focus {
  border-color: var(--accent-violet) !important;
  box-shadow: 0 0 0 1000px #ffffff inset, 0 0 20px rgba(150, 113, 225, 0.2) !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 20px rgba(150, 113, 225, 0.2) !important;
}

.form-group textarea {
  min-height: 150px;
  resize: none;
  overflow-y: hidden;
}

/* ---------- AI HUB SECTION (High Fidelity) ---------- */
.ai-hub-section {
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 70% 50%, rgba(150, 113, 225, 0.1) 0%, transparent 50%);
  overflow: hidden;
}

.ai-hub-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 100px;
  margin-top: 60px;
  position: relative;
  min-height: 500px;
}

/* Nodes Styling */
.ai-hub-nodes {
  display: flex;
  gap: 30px;
  z-index: 5;
}

.ai-hub-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}

.ai-step-card {
  width: 260px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30, 20, 70, 0.88) 0%, rgba(50, 30, 100, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 2px 12px rgba(150, 113, 225, 0.12);
  /* backdrop-filter zredukowany z blur(20px) saturate(180%) brightness(1.08) -> blur(8px) */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  /* will-change usuniĂ„â„˘ty: translateZ(0) jućąć˝ tworzy warstwĂ„â„˘ kompozytora — duplikujemy bez powodu */
  transform: translateZ(0);
}

.ai-step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.ai-step-card:hover {
  transform: translateX(10px) scale(1.05);
  border-color: rgba(180, 150, 255, 0.5);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    0 0 30px rgba(150, 113, 225, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.ai-step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.ai-step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* SVG & Connections */
.ai-hub-svg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hub-svg {
  width: 100%;
  height: 100%;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -20;
  }
}

.pipe-line {
  stroke: var(--accent-violet);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.3;
  filter: url(#pipe-glow);
  transition: all 0.5s ease;
}

.ai-hub-wrapper:hover .pipe-line {
  opacity: 0.7;
  stroke: var(--accent-pale);
  stroke-width: 7;
}

.chip-traces {
  stroke: var(--accent-violet);
  stroke-width: 1.5;
  opacity: 0.4;
  color: var(--accent-violet);
}

.chip-traces path {
  fill: none;
}

.chip-traces circle {
  filter: drop-shadow(0 0 4px var(--accent-violet));
}

.ai-hub-wrapper:hover .chip-traces {
  opacity: 0.8;
  stroke: var(--accent-lilac);
  color: var(--accent-lilac);
}

/* AI Processor Core - V3 Enlarged & Clean */
.ai-hub-core-wrap {
  position: relative;
  width: 450px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.ai-processor {
  width: 340px;
  height: 340px;
  background: rgba(30, 30, 80, 0.65);
  /* backdrop-filter zredukowany 16px->8px, mniejszy koszt GPU */
  backdrop-filter: blur(8px);
  border-radius: 48px;
  position: relative;
  border: 2px solid rgba(150, 113, 225, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(150, 113, 225, 0.4),
    inset 0 0 30px rgba(150, 113, 225, 0.2);
  animation: pulseCore 4s ease-in-out infinite;
  overflow: hidden;
  z-index: 2;
  /* will-change usuniĂ„â„˘ty — transform jest jućąć˝ animowany przez @keyframes, przeglĂ„â€¦darka sama promuje */
  transform: translateZ(0);
}

.ai-processor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(184, 160, 232, 0.25) 0%, transparent 75%);
}

.proc-ai-text {
  font-size: 5.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.7),
    0 0 50px rgba(150, 113, 225, 0.5);
  letter-spacing: 6px;
  z-index: 5;
  font-family: var(--font-sans);
}

.proc-aura {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(150, 113, 225, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: auraPulse 6s ease-in-out infinite;
  z-index: 1;
  /* will-change usuniĂ„â„˘ty — @keyframes scale+opacity, przeglĂ„â€¦darka sama optymalizuje */
  transform: translateZ(0);
}

@keyframes auraPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes pulseCore {

  0%,
  100% {
    transform: scale(1) translateZ(0);
  }

  50% {
    transform: scale(1.02) translateZ(0);
  }
}

/* Animacja blasku procesora — oddzielony pseudo-element zamiast box-shadow na klatke */
.ai-processor::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 60px;
  background: radial-gradient(circle, rgba(150, 113, 225, 0.5) 0%, rgba(150, 113, 225, 0.1) 50%, transparent 75%);
  animation: pulseCoreGlow 4s ease-in-out infinite;
  /* will-change: opacity usuniĂ„â„˘ty — @keyframes opacity sam triggeruje compositing */
  z-index: -1;
  pointer-events: none;
}

@keyframes pulseCoreGlow {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1.0;
  }
}

/* Floating Particles around Core */
.ai-hub-core-wrap::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
  animation: drift 20s linear infinite;
  /* will-change: background-position usuniĂ„â„˘ty — background-position nie jest właściwościĂ„â€¦ kompozytora */
  /* Zamiast tego: animacja przez transform na pseudo-elemencie byłaby szybsza, ale to kosmetyka */
  transform: translateZ(0);
}

@keyframes drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 100px 100px;
  }
}

@media (max-width: 1024px) {
  .ai-hub-wrapper {
    flex-direction: column;
    padding-bottom: 60px;
  }

  .ai-hub-svg-wrap {
    display: none;
  }

  .ai-hub-core-wrap {
    order: -1;
    margin-bottom: 40px;
  }
}

.ai-background-glow {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(150, 113, 225, 0.25) 0%, rgba(20, 20, 80, 0) 65%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.ai-video-main {
  position: absolute;
  right: 60px;
  top: 100px;
  width: 380px;
  height: auto;
  z-index: 1;
  mix-blend-mode: screen;
  /* Magic for removing black background */
  filter: drop-shadow(0 0 40px rgba(150, 113, 225, 0.5));
  animation: floatChip 3.5s ease-in-out infinite alternate;
}

.ai-scene-card {
  position: absolute;
  width: 220px;
  height: 100px;
  background: linear-gradient(180deg, rgba(20, 20, 40, 0.8) 0%, rgba(5, 5, 15, 0.95) 100%);
  border-radius: 16px;
  padding: 0 16px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(100, 100, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 0 1px rgba(100, 100, 255, 0.2);
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
  /* will-change usuniĂ„â„˘ty — translateZ(0) jućąć˝ promuje do osobnej warstwy */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Nie animuj 'all' — specyficzne właściwości zamiast */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-sans);
  border: none;
}

.ai-scene-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(100, 100, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(100, 100, 255, 0.4);
}

.ai-scene-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  text-align: center;
}

.ai-scene-card p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin: 0;
  text-align: center;
  font-weight: 400;
}

/* Syncing elements with the main AI visual if needed */

@keyframes floatChip {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 50px rgba(74, 86, 255, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  100% {
    transform: translateY(-8px);
    box-shadow: 0 0 80px rgba(74, 86, 255, 0.5), 0 30px 50px rgba(0, 0, 0, 0.5);
  }
}

/* ==============================================================
   2026 SPATIAL UI & SCROLL REVEAL (PREMIUM EFFECTS)
   ============================================================== */

/* 1. Cinematographic Scroll Reveal (Sekwencyjny Fade-Up z Cubic Bezier) */
.will-reveal {
  opacity: 0;
  transform: translateY(40px);
  /* Trwa 0.8s, świetna kinowa krzywa dynamiki */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* will-change: opacity, transform — OK dla animacji scroll reveal, ale usuniemy po zakoćąâ€žczeniu przez JS */
  will-change: opacity, transform;
}

.will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Real-time Cursor Glare (PodĂ„â€¦ćąć˝ajĂ„â€¦ce ćąłˇwiatło 3D powiĂ„â€¦zane z JS) */
.project-card::after,
.offer-card::after,
.testimonial-card::after,
.ai-scene-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Radialny odblask korzystajĂ„â€¦cy ze zrzucanych z JS wspć‚ł‚łrzĂ„â„˘dnych */
  background: radial-gradient(500px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
      rgba(255, 255, 255, 0.08),
      transparent 40%);
  pointer-events: none;
  /* ćąÂ»eby nie psuĂ„â€ˇ hovera pod spodem */
  z-index: 10;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Błysk zapala siĂ„â„˘ dopiero, gdy wejdziesz kursorem */
.project-card:hover::after,
.offer-card:hover::after,
.testimonial-card:hover::after,
.ai-scene-card:hover::after {
  opacity: 1;
}

/* Nadpisanie zachowania kart pod Tilt 3D (szybka reakcja na transformacjĂ„â„˘) */
.project-card.is-revealed,
.offer-card.is-revealed,
.testimonial-card.is-revealed,
.ai-scene-card.is-revealed {
  /* Skracamy transition transform, ćąć˝eby ruch obrotu był momentalny (jak native w iOS / macOS) */
  transition: transform 0.05s linear, border-color 0.4s ease, box-shadow 0.4s ease;
  /* will-change: transform — tu jest uzasadniony: karta aktywnie reaguje na ruch myszy (tilt 3D) */
  will-change: transform;
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 24px 40px;
  border-top: 1px solid rgba(150, 113, 225, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: auto;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-white);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deepest);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-violet), var(--accent-pale));
  border-radius: 10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-photo-wrap {
    display: flex;
    justify-content: center;
  }

  .hero-photo-card {
    max-width: 340px;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .offer-grid {
    grid-template-columns: 1fr;
  }

  .steps-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 16px 24px;
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-form {
    padding: 28px 24px;
  }

  .testimonial-card {
    padding: 36px 28px;
  }
}

/* ---------- HERO CARD FALLBACK ---------- */
.hero-card-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0A0A19 0%, var(--bg-navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.hero-card-fallback::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

/* ---------- FORM ALERTS ---------- */
.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

/* ---------- AJAX FORM STATES ---------- */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.galaxy-button button.btn-success {
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4) !important;
}

.galaxy-button button.btn-success .text {
  color: #4ade80 !important;
}

.galaxy-button button.btn-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

.galaxy-button button.btn-error .text {
  color: #f87171 !important;
}

/* ═══ ═══ ═══  PRICING SECTION ═══ ═══ ═══  */
.pricing-section {
  padding: var(--space-xl) 0;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 900px;
}

.pricing-section::after {
  content: '';
  position: absolute;
  top: 100%;
  /* Rozpoczyna siĂ„â„˘ dokładnie na koćąâ€žcu sekcji */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(150, 113, 225, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* PRICING GRID REMOVED - REDEFINED BELOW */

/* ═════════ PRICING DREAM DESIGN ═════════ */
.pricing-section {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(circle at 50% -20%, rgba(150, 113, 225, 0.2) 0%, transparent 50%);
}

.pricing-header {
  text-align: center;
  margin-bottom: 80px;
}

.pricing-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(150, 113, 225, 0.1);
  border: 1px solid rgba(150, 113, 225, 0.3);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-lilac);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(150, 113, 225, 0.1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(14, 10, 40, 0.75);
  /* backdrop-filter: blur zredukowany z 20px→6px: najwiĂ„â„˘kszy koszt GPU na kartach cenowych */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s, background 0.5s;
  position: relative;
  will-change: transform;
  transform: translateZ(0);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(150, 113, 225, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Featured Card (Middle) */
.pricing-card.featured {
  background: rgba(255, 64, 129, 0.03);
  border: 1.5px solid rgba(255, 64, 129, 0.6);
  padding: 52px 32px;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 64, 129, 0.15), inset 0 0 20px rgba(255, 64, 129, 0.05);
}

.featured-badge {
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff4081;
  letter-spacing: 0.1em;
}

.pricing-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 32px;
  min-height: auto;
  font-style: normal;
}

/* Price Typography */
.card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 32px;
  color: var(--text-white);
}

.card-price .currency {
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.7;
}

.card-price .amount {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card-price .suffix {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.6;
}

.realization-time {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.9;
}

/* Buttons (Liquid Style) */
@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes drop {
  0% {
    bottom: 0px;
    opacity: 0;
  }

  1% {
    bottom: 0px;
    opacity: 1;
  }

  17.7% {
    bottom: 0px;
    opacity: 1;
  }

  22.2% {
    bottom: -400px;
    opacity: 1;
  }

  22.3% {
    bottom: -400px;
    opacity: 0;
  }

  100% {
    bottom: 0px;
    opacity: 0;
  }
}

@keyframes drop {
  0% {
    bottom: 0px;
    opacity: 1;
  }

  /* Spada wolniej (3s z 9s) */
  33.3% {
    bottom: -400px;
    opacity: 1;
  }

  33.4% {
    opacity: 0;
  }

  100% {
    bottom: -400px;
    opacity: 0;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.loader {
  text-align: center;
  font-size: 16px;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
  border: none;
  cursor: pointer;
  background-color: transparent;
  text-decoration: none;
  margin: 24px 0 40px 0;
}

.loader-bg {
  border-radius: 12px;
  padding: 12px 40px;
  z-index: 2;
  width: 260px;
  color: #fff;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: #3b28cc;
  background-image: radial-gradient(circle 120px at 50% 150%, #8474fe, #4d36d0);
  box-shadow: 0 0 20px rgba(77, 54, 208, 0.4);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.loader-bg:hover {
  text-shadow: 0px 0px 4px #8474fe;
  box-shadow: 0 0 30px rgba(132, 116, 254, 0.6);
}

.loader-bg:active {
  background-image: radial-gradient(circle 140px at 50% 150%, #8474fe, #4d36d0);
}

.loader-bg:hover+.drops .drop2,
.loader-bg:hover+.drops .drop3 {
  animation: drop 1s cubic-bezier(1, 0.19, 0.66, 0.12) 0.2s infinite;
}

.loader-bg:active+.drops .drop1,
.loader-bg:active+.drops .drop2,
.loader-bg:active+.drops .drop3 {
  background-color: #8474fe;
}

/* Featured (PREMIUM) Button Overrides - PINK STYLE */
.featured-loader .loader-bg {
  background-color: #c2185b;
  background-image: radial-gradient(circle 120px at 50% 150%, #ff4081, #880e4f);
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

.featured-loader .loader-bg:hover {
  text-shadow: 0px 0px 8px #ff80ab;
  box-shadow: 0 0 30px rgba(233, 30, 99, 0.5);
}

.featured-loader .loader-bg:active {
  background-image: radial-gradient(circle 140px at 50% 150%, #ff4081, #880e4f);
}

.featured-loader .drop1,
.featured-loader .drop2,
.featured-loader .drop3 {
  background-color: #880e4f;
}

.featured-loader .loader-bg:active+.drops .drop1,
.featured-loader .loader-bg:active+.drops .drop2,
.featured-loader .loader-bg:active+.drops .drop3 {
  background-color: #ff4081;
}

.featured-loader .drop3 {
  background-color: #ff4081;
}

.drops {
  -webkit-filter: url(#liquid);
  filter: url(#liquid);
  position: absolute;
  top: 35%;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
  opacity: 0;
  animation: fade-in 0.1s linear 0.4s forwards;
}

.drop1,
.drop2,
.drop3 {
  width: 20px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  background-color: #3b28cc;
}

.drop1 {
  width: 265px;
  height: 16px;
  bottom: 2px;
  border-radius: 0;
}

.drop3 {
  background-color: var(--accent-violet);
}

.drop2,
.drop3 {
  animation: drop 9s cubic-bezier(1, 0.19, 0.66, 0.12) infinite;
}

/* Slower sequential loop (3s per card, 9s total) */
.pricing-card:nth-of-type(1) .drop2,
.pricing-card:nth-of-type(1) .drop3 {
  animation-delay: 0s;
}

.pricing-card:nth-of-type(2) .drop2,
.pricing-card:nth-of-type(2) .drop3 {
  animation-delay: 3s;
}

.pricing-card:nth-of-type(3) .drop2,
.pricing-card:nth-of-type(3) .drop3 {
  animation-delay: 6s;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
  border-bottom: none;
}

.check-circle {
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.4);
}

.check-circle i {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.feature-item.bonus {
  color: var(--accent-pale);
  font-weight: 600;
}

/* Responsive Pricing */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .pricing-card.featured {
    padding: 48px 32px;
  }
}

/* hidden SVG filter */
.liquid-svg {
  position: absolute;
  width: 0;
  height: 0;
}

/* ═════════ EMOTION FACIAL MAPPING TAGS (STABLE PREMIUM) ═════════ */
.emotion-tag {
  position: absolute !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 6px 16px 6px 6px !important;
  width: fit-content !important;
  height: fit-content !important;
  white-space: nowrap !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  z-index: 20 !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
  /* will-change usuniĂ„â„˘ty — statyczne tagi, nie animowane przez JS; translateZ(0) wystarczy */
  transform: translateZ(0);
}

.emotion-tag i {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(10, 10, 25, 0.8) !important;
  border-radius: 50% !important;
  padding: 6px !important;
  color: #fff !important;
}

/* Tighter positioning precisely tracking the face area based on your drawing */
.tag-1 {
  top: 21%;
  right: 26%;
  left: auto !important;
}

/* KreatywnośĂ„â€ˇ - top right near temple */
.tag-2 {
  top: 58%;
  right: 22%;
  left: auto !important;
}

/* OdpowiedzialnośĂ„â€ˇ - bottom right near shoulder */
.tag-3 {
  top: 19%;
  left: 26%;
  right: auto !important;
}

/* Inspiracja - top left near temple */
.tag-4 {
  top: 52%;
  left: 22%;
  right: auto !important;
}

/* Precyzja - bottom left near shoulder */

@media (max-width: 768px) {
  .emotion-tag {
    padding: 4px 12px 4px 4px !important;
    font-size: 0.7rem !important;
  }

  .emotion-tag i {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }
}

/* ---------- PROJECTS MARQUEE ---------- */
.projects-marquee-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* Własna warstwa GPU, izoluje layout i paint od reszty strony */
  transform: translateZ(0);
  contain: layout style;
}

.projects-marquee {
  display: flex;
  width: max-content;
  animation: projectsMarquee 30s linear infinite;
  will-change: transform;
  /* Własna warstwa compositora GPU */
  transform: translateZ(0);
}

@keyframes projectsMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.projects-marquee.reverse {
  animation-direction: reverse;
}

.projects-marquee-wrapper::before,
.projects-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.projects-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-deepest), transparent);
}

.projects-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-deepest), transparent);
}

.projects-marquee .project-card {
  width: 380px;
  margin-right: 32px;
  flex-shrink: 0;
  contain: layout style paint;
  /* Uproszczony hover bez 3D perspective — tilt jest wyłĂ„â€¦czony dla kart w marquee */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-marquee .project-card:hover {
  transform: translateZ(0) scale(1.03);
}

.btn-secondary {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 113, 225, 0.3);
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(150, 113, 225, 0.08);
  border-color: var(--accent-pale);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
}

/* ---------- CONTACT FORM BUTTON (UIVERSE) ---------- */
/* ---------- CONTACT FORM BUTTON ---------- */
#send-btn.shiny-cta {
  width: 100%;
  justify-content: center;
}

/* ---------- PRICING SECTION (NEW TABBED DESIGN) ---------- */
.pricing-section {
  padding: 100px 0;
  background: transparent;
}

.pricing-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 40px;
}

.tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a1a1aa;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.pricing-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.pricing-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-category-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 24px;
  display: block;
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.pricing-footer-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
}

/* Pojedyncze grid (Old style adaptation) */
.pricing-grid-pojedyncze {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 40px auto 0;
  max-width: 1000px;
  justify-content: center;
}

.single-service-card-oldstyle {
  background: rgba(14, 10, 40, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(132, 116, 254, 0.4);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  box-shadow: inset 0 0 15px rgba(132, 116, 254, 0.05), 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-service-card-oldstyle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(150, 113, 225, 0.4);
  transform: translateY(-5px);
}

.single-service-card-oldstyle .service-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.single-service-card-oldstyle .card-tag {
  display: block;
  margin-top: 8px;
  padding: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0;
  font-style: normal;
}

/* JS States for contact form button */
  .shiny-cta.is-sending {
    opacity: 0.75;
  }

  .shiny-cta.sent-success {
    --shiny-cta-highlight: #22c55e;
    --shiny-cta-highlight-subtle: #4ade80;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
  }

  .shiny-cta.sent-error {
    --shiny-cta-highlight: #ef4444;
    --shiny-cta-highlight-subtle: #f87171;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
  }

}

.uiverse-send-btn.sent-error::after {
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, #f87171, #b91c1c) border-box;
}

.uiverse-send-btn.sent-error::before {
  background: linear-gradient(to top, #dc2626, #ef4444);
}

.uiverse-send-btn.sent-error .outline {
  opacity: 1;
}

.uiverse-send-btn.sent-error .outline::before {
  background: conic-gradient(from 180deg, transparent 60%, #fca5a5 80%, transparent 100%);
  animation-play-state: running;
}

/* ═════════ PRIVACY PAGE ═════════ */
.privacy-section {
  padding: 140px 0 80px;
  min-height: 80vh;
}

.privacy-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.privacy-content {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.privacy-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-violet);
  margin-bottom: 0.75rem;
}

.privacy-block p,
.privacy-block li {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.privacy-block ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.privacy-block li {
  margin-bottom: 0.4rem;
}

.privacy-block a {
  color: var(--accent-violet);
  text-decoration: underline;
}

.privacy-block a:hover {
  color: var(--accent-pale);
}

.privacy-block address {
  font-style: normal;
  line-height: 2;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.privacy-block address strong {
  color: var(--text-primary);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  color: var(--accent-lilac);
  background: rgba(108, 92, 231, 0.1);
  font-weight: 600;
}

.cookie-table td {
  color: var(--text-muted);
}

.cookie-table code {
  font-family: var(--font-mono);
  color: var(--accent-pale);
}

.privacy-back {
  margin-top: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-violet);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-pale);
}

/* ═════════ FORM CONSENT CHECKBOX ═════════ */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--border-glow);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  margin-top: 2px;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.form-consent input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  border-color: var(--accent-violet);
}

.form-consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-consent label {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
}

.form-consent label a {
  color: var(--accent-violet);
  text-decoration: underline;
}

.form-consent label a:hover {
  color: var(--accent-pale);
}


/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   PREFERS-REDUCED-MOTION — Ułatwienia dostĂ„â„˘pu (accessibility)
   Ućąć˝ytkownicy z wraćąć˝liwościĂ„â€¦ na ruch mogĂ„â€¦ to włĂ„â€¦czyĂ„â€ˇ w ustawieniach
   systemu (Windows: Ułatwienia dostĂ„â„˘pu → Animacje) i wszystko stanie
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .projects-marquee {
    animation-play-state: paused !important;
  }

  .bio-label-icon--rotate {
    animation: none !important;
    transform: none !important;
  }

  .hero-dot {
    animation: none !important;
  }

  .ai-processor {
    animation: none !important;
  }

  .proc-aura {
    animation: none !important;
  }

  .about-wind::before,
  .about-wind::after {
    animation: none !important;
  }

  .loader .drop2,
  .loader .drop3,
  .loader .drop4 {
    animation: none !important;
  }

  .ai-image-wrap img {
    animation: none !important;
  }

  .ai-hub-core-wrap::after {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   MOBILNA OPTYMALIZACJA WYDAJNOćąłˇCI (max-width: 768px)
   backdrop-filter = najdroćąć˝szy efekt CSS na telefonach — wyłĂ„â€¦czamy
   i kompensujemy ciemniejszymi, nieprzezroczystymi tłami
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {


  /* WyłĂ„â€¦cz 3D tilt na kartach — zbĂ„â„˘dny na ekranie dotykowym */
  .bento-card:hover,
  .offer-card:hover,
  .ai-scene-card:hover {
    transform: none !important;
  }

  /* Zatrzymaj animacje tł‚a procesora */
  .ai-hub-core-wrap::after {
    animation: none !important;
  }

  /* Prostsze hover przycisków */
  .galaxy-button>button:hover,
  .galaxy-button>a:hover {
    box-shadow: inset 0 0 15px rgba(150, 113, 225, 0.7) !important;
  }
}

/* Bardzo mał‚e ekrany (stare/tanie telefony) */
@media (max-width: 480px) {

  .about-wind::before,
  .about-wind::after {
    display: none !important;
  }

  /* WyłĂ„â€¦cz spinning galaxies na przyciskach */
  .galaxy__ring {
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   SHINY CTA BUTTON (New Hero Action)
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

.shiny-cta {
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 0 32px;
  height: 56px;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
      transparent,
      var(--shiny-cta-highlight) var(--gradient-percent),
      var(--gradient-shine) calc(var(--gradient-percent) * 2),
      var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
      transparent calc(var(--gradient-percent) * 4)) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);

  &::before,
  &::after,
  span::before {
    content: "";
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
  }

  &:active {
    translate: 0 1px;
  }
}

/* Dots pattern */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position),
      white calc(var(--position) / 4),
      transparent 0) padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg),
      black,
      transparent 10% 90%,
      black);
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

/* Inner shimmer */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg,
      transparent,
      var(--shiny-cta-highlight),
      transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span {
  z-index: 1;

  &::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
  }
}

/* Animate */
.shiny-cta {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent,
    --gradient-shine;

  &,
  &::before,
  &::after {
    animation: var(--animation) var(--duration),
      var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
  }

  span::before {
    transition: opacity var(--transition);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
  }
}

.shiny-cta:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);

  &,
  &::before,
  &::after {
    animation-play-state: running;
  }

  span::before {
    opacity: 1;
  }
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {

  from,
  to {
    scale: 1;
  }

  50% {
    scale: 1.2;
  }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   SPARKLE BUTTON (Realizacje & Kontakt)
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ 
   SPARKLE BUTTON (Realizacje & Kontakt)
   Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘ Ă˘â€˘  */
:root {
  --spark-duration: 1.8s;
}

.sparkle-button {
  --active: 0;
  --transition: 0.25s;
  --spark: 1.8s;
  position: relative;
  display: inline-flex;
}

.sparkle-button button {
  --cut: 0.1em;
  --active: 0;
  --bg:
    radial-gradient(40% 50% at center 100%,
      hsl(270 calc(var(--active) * 97%) 72% / var(--active)),
      transparent),
    radial-gradient(80% 100% at center 120%,
      hsl(260 calc(var(--active) * 97%) 70% / var(--active)),
      transparent),
    hsl(260 calc(var(--active) * 97%) calc((var(--active) * 44%) + 12%));
  background: var(--bg);
  font-size: 0.75rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 0;
  cursor: pointer;
  height: 56px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  white-space: nowrap;
  border-radius: 360px;
  position: relative;
  box-shadow:
    0 0 calc(var(--active) * 2em) calc(var(--active) * 1em) hsl(260 97% 61% / 0.5),
    0 0.05em 0 0 hsl(260 calc(var(--active) * 97%) calc((var(--active) * 50%) + 30%)) inset,
    0 -0.05em 0 0 hsl(260 calc(var(--active) * 97%) calc(var(--active) * 60%)) inset;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  transform: scale(calc(1 + (var(--active) * 0.1)));
}

.sparkle-button button:active {
  transform: scale(1);
}

.sparkle-button svg {
  overflow: visible !important;
}

.sparkle-button .sparkle path {
  color: hsl(0 0% calc((var(--active, 0) * 70%) + var(--base)));
  transform-box: fill-box;
  transform-origin: center;
  fill: currentColor;
  stroke: currentColor;
  animation-delay: calc((var(--transition) * 1.5) + (var(--delay) * 1s));
  animation-duration: 0.6s;
  transition: color var(--transition);
}

.sparkle-button button:is(:hover, :focus-visible) {
  --active: 1;
}

.sparkle-button button:is(:hover, :focus-visible) path {
  animation-name: bounce;
}

@keyframes bounce {

  35%,
  65% {
    scale: var(--scale);
  }
}

.sparkle-button .sparkle path:nth-of-type(1) {
  --scale: 0.5;
  --delay: 0.1;
  --base: 40%;
}

.sparkle-button .sparkle path:nth-of-type(2) {
  --scale: 1.5;
  --delay: 0.2;
  --base: 20%;
}

.sparkle-button .sparkle path:nth-of-type(3) {
  --scale: 2.5;
  --delay: 0.35;
  --base: 30%;
}

.sparkle-button button:before {
  content: "";
  position: absolute;
  inset: -0.25em;
  z-index: -1;
  border: 0.25em solid hsl(260 97% 50% / 0.5);
  border-radius: 100px;
  opacity: var(--active, 0);
  transition: opacity var(--transition);
}

.sparkle-button .spark {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  rotate: 0deg;
  overflow: hidden;
  mask: linear-gradient(white, transparent 50%);
  animation: flip calc(var(--spark) * 2) infinite steps(2, end);
}

@keyframes flip {
  to {
    rotate: 360deg;
  }
}

.sparkle-button .spark:before {
  content: "";
  position: absolute;
  width: 200%;
  aspect-ratio: 1;
  top: 0%;
  left: 50%;
  z-index: -1;
  translate: -50% -15%;
  rotate: 0;
  transform: rotate(-90deg);
  opacity: calc((var(--active)) + 0.4);
  background: conic-gradient(from 0deg,
      transparent 0 300deg,
      white 330deg,
      transparent 360deg);
  transition: opacity var(--transition);
  animation: rotate var(--spark) linear infinite both;
}

.sparkle-button .spark:after {
  content: "";
  position: absolute;
  inset: var(--cut);
  border-radius: 100px;
}

.sparkle-button .backdrop {
  position: absolute;
  inset: var(--cut);
  background: var(--bg);
  border-radius: 100px;
  transition: background var(--transition);
}

@keyframes rotate {
  to {
    transform: rotate(90deg);
  }
}

.sparkle-button button:is(:hover, :focus-visible)~.particle-pen {
  --active: 1;
}

.sparkle-button .particle-pen {
  position: absolute;
  width: 140%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  -webkit-mask: radial-gradient(white, transparent 65%);
  z-index: -1;
    pointer-events: none;
  opacity: var(--active, 0);
  transition: opacity var(--transition);
}

.sparkle-button .particle {
  fill: white;
  width: calc(var(--size, 0.25) * 1rem);
  aspect-ratio: 1;
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  opacity: var(--alpha, 1);
  animation: float-out calc(var(--duration, 1) * 1s) calc(var(--delay) * -1s) infinite linear;
  transform-origin: var(--origin-x, 1000%) var(--origin-y, 1000%);
  z-index: -1;
  animation-play-state: paused;
}

.sparkle-button button:is(:hover, :focus-visible)~.particle-pen .particle {
  animation-play-state: running;
}

.sparkle-button .particle path {
  fill: hsl(0 0% 90%);
  stroke: none;
}

.sparkle-button .particle:nth-of-type(even) {
  animation-direction: reverse;
}

@keyframes float-out {
  to {
    rotate: 360deg;
  }
}

.sparkle-button .text {
  translate: 0 0;
  letter-spacing: 0.01ch;
  background: linear-gradient(90deg, hsl(0 0% calc((var(--active) * 100%) + 65%)), hsl(0 0% calc((var(--active) * 100%) + 26%)));
  -webkit-background-clip: text;
  color: transparent;
  transition: background var(--transition);
}

.sparkle-button button svg.sparkle {
  inline-size: 1.25em;
  translate: 0 0;
}

/* From Uiverse.io by marcelodolza */ 
.button {
  --primary: var(--accent-violet);
  --neutral-1: #f7f8f7;
  --neutral-2: #e7e7e7;
  --radius: 14px;

  cursor: pointer;
  border-radius: var(--radius);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  box-shadow: 0 0.5px 0.5px 1px rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.2), 0 4px 5px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  min-width: 200px;
  padding: 20px;
  height: 68px;
  font-family: "Galano Grotesque", Poppins, Montserrat, sans-serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
}
.button:hover {
  transform: scale(1.02);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 3px -3px rgba(0, 0, 0, 0.04);
}
.button:active {
  transform: scale(1);
  box-shadow: 0 0 1px 2px rgba(255, 255, 255, 0.3),
    0 10px 3px -3px rgba(0, 0, 0, 0.2);
}
.button:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2.5px solid transparent;
  background: linear-gradient(var(--neutral-1), var(--neutral-2)) padding-box,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45))
      border-box;
  z-index: 0;
  transition: all 0.4s ease;
}
.button:hover::after {
  transform: scale(1.05, 1.1);
  box-shadow: inset 0 -1px 3px 0 rgba(255, 255, 255, 1);
}
.button::before {
  content: "";
  inset: 7px 6px 6px 6px;
  position: absolute;
  background: linear-gradient(to top, var(--neutral-1), var(--neutral-2));
  border-radius: 30px;
  filter: blur(0.5px);
  z-index: 2;
}
.state p {
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: scale(1.25);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.state .icon svg {
  overflow: visible;
}

/* Outline */
.outline {
  position: absolute;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  inset: -2px -3.5px;
}
.outline::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from 180deg,
    transparent 60%,
    white 80%,
    transparent 100%
  );
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.button:hover .outline {
  opacity: 1;
}
.button:hover .outline::before {
  animation-play-state: running;
}

/* Letters */
.state p span {
  display: block;
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.03s);
}
.button:hover p span {
  opacity: 1;
  animation: wave 0.5s ease forwards calc(var(--i) * 0.02s);
}
.button:focus p span {
  opacity: 1;
  animation: disapear 0.6s ease forwards calc(var(--i) * 0.03s);
}
@keyframes wave {
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
    color: var(--primary);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) translateX(5px) rotate(-90deg);
    color: var(--primary);
    filter: blur(5px);
  }
  30% {
    opacity: 1;
    transform: translateY(4px) translateX(0) rotate(0);
    filter: blur(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px) translateX(0) rotate(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0) rotate(0);
  }
}
@keyframes disapear {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(5px) translateY(20px);
    color: var(--primary);
    filter: blur(5px);
  }
}

/* Plane */
.state--default .icon svg {
  animation: land 0.6s ease forwards;
}
.button:hover .state--default .icon {
  transform: rotate(45deg) scale(1.25);
}
.button:focus .state--default svg {
  animation: takeOff 0.8s linear forwards;
}
.button:focus .state--default .icon {
  transform: rotate(0) scale(1.25);
}
.button:focus::after {
  animation: greenBgAfter 0.4s ease 0.8s forwards;
}
.button:focus::before {
  animation: greenBgBefore 0.4s ease 0.8s forwards;
}
@keyframes greenBgAfter {
  to {
    background: linear-gradient(#4ade80, #22c55e) padding-box,
      linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)) border-box;
  }
}
@keyframes greenBgBefore {
  to {
    background: linear-gradient(to top, #4ade80, #22c55e);
  }
}
@keyframes takeOff {
  0% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: translateX(70px) rotate(45deg) scale(2);
  }
  100% {
    opacity: 0;
    transform: translateX(160px) rotate(45deg) scale(0);
  }
}
@keyframes land {
  0% {
    transform: translateX(-60px) translateY(30px) rotate(-50deg) scale(2);
    opacity: 0;
    filter: blur(3px);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0);
    opacity: 1;
    filter: blur(0);
  }
}

/* Contrail */
.state--default .icon:before {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  width: 0;
  left: -5px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
}
.button:focus .state--default .icon:before {
  animation: contrail 0.8s linear forwards;
}
@keyframes contrail {
  0% {
    width: 0;
    opacity: 1;
  }
  8% {
    width: 15px;
  }
  60% {
    opacity: 0.7;
    width: 80px;
  }
  100% {
    opacity: 0;
    width: 160px;
  }
}

/* States */
.state {
  padding-left: 29px;
  z-index: 2;
  display: flex;
  position: relative;
}
.state--default span:nth-child(4) {
  margin-right: 0px;
}
.state--sent {
  display: none;
}
.state--sent svg {
  transform: scale(1.25);
  margin-right: 8px;
}
.button:focus .state--default {
  position: absolute;
}
.button:focus .state--sent {
  display: flex;
}
.button:focus .state--sent span {
  opacity: 0;
  animation: slideDown 0.8s ease forwards calc(var(--i) * 0.2s);
}
.button:focus .state--sent .icon svg {
  opacity: 0;
  animation: appear 1.2s ease forwards 0.8s;
}
@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(4) rotate(-40deg);
    color: var(--primary);
    filter: blur(4px);
  }
  30% {
    opacity: 1;
    transform: scale(0.6);
    filter: blur(1px);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* From Uiverse.io by david-mohseni */ 
.social-wrapper {
  display: inline-flex;
  list-style: none;
  height: 120px;
  width: 100%;
  padding-top: 40px;
  font-family: "Poppins", sans-serif;
  justify-content: flex-start;
  padding-left: 0;
  margin: 0;
}

.social-wrapper .social-icon {
  position: relative;
  background: #fff;
  border-radius: 50%;
  margin: 10px 10px 10px 0;
  width: 50px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #333;
}

.social-wrapper .tooltip {
  position: absolute;
  top: 0;
  font-size: 14px;
  background: #fff;
  color: #333;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #fff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-wrapper .social-icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.social-wrapper .social-icon:hover span,
.social-wrapper .social-icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.social-wrapper .linkedin:hover,
.social-wrapper .linkedin:hover .tooltip,
.social-wrapper .linkedin:hover .tooltip::before {
  background: #0A66C2;
  color: #fff;
}

.social-wrapper .behance:hover,
.social-wrapper .behance:hover .tooltip,
.social-wrapper .behance:hover .tooltip::before {
  background: #000000;
  color: #fff;
}

/* ==============================================================
   RESPONSIVE LAYOUTS & MEDIA QUERIES (DESKTOP-FIRST)
   ============================================================== */

/* ---------- TABLET / MOBILE (MAX-WIDTH: 768PX) ---------- */
@media (max-width: 768px) {
  
  /* --- OFFER / PRICING SECTION --- */
  .pricing-section {
    padding: 60px 0;
  }

  .pricing-header {
    margin-bottom: 40px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px; /* Centered narrow container on mobile */
    margin: 0 auto;
    padding: 0 16px;
  }

  .pricing-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .pricing-card.featured {
    padding: 32px 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 64, 129, 0.1);
  }

  .featured-badge {
    top: 16px;
    right: 24px;
  }

  .pricing-card h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }

  .card-subtitle {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }

  .card-price {
    margin-bottom: 24px;
  }

  .card-price .amount {
    font-size: 3rem;
  }

  .loader {
    margin: 16px 0 24px 0;
  }

  .loader-bg {
    width: 100%;
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .features-list {
    gap: 12px;
  }

  .feature-item {
    font-size: 0.88rem;
    padding-bottom: 10px;
  }

  .check-circle {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }

  .check-circle i {
    width: 12px;
    height: 12px;
  }

  .realization-time {
    padding-top: 24px;
    font-size: 0.8rem;
  }
}

/* ---------- MOBILE PORTRAIT (MAX-WIDTH: 640PX) ---------- */
/* Mobile Menu Toggle Custom Styling */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  padding: 8px;
  z-index: 110;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.mobile-menu-toggle:hover {
  opacity: 0.8;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text-white);
}

@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 30, 0.98);
    border: 1px solid rgba(150, 113, 225, 0.35);
    border-radius: 24px;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }
  
  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  
  .nav-dropdown-content {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    width: 100%;
    background: rgba(20, 20, 50, 0.5) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- MOBILE SPHERE FALLBACK & STICKY CTA ---------- */
@media (max-width: 768px) {
  .hero-photo-wrap {
    height: 480px !important;
  }
  
  .mobile-sphere-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
  }

  .mobile-sphere-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(150, 113, 225, 0.65) 0%, rgba(20, 20, 80, 0) 70%);
    filter: blur(8px);
    animation: mobilePulseGlow 4s ease-in-out infinite alternate;
  }

  .mobile-sphere-svg {
    width: 160px;
    height: 160px;
    filter: drop-shadow(0 0 15px rgba(150, 113, 225, 0.6));
    animation: mobileSlowSpin 16s linear infinite;
  }

  /* Make sure bio label paths/dots (SVGs) are hidden on mobile since we return early */
  #hero-bio-sphere svg:not(.mobile-sphere-svg) {
    display: none !important;
  }

  /* Style labels cleanly around the static fallback on mobile */
  .bio-label--mobile {
    transform: none !important;
    animation: floatLabelMobile 6s ease-in-out infinite alternate;
  }
}

@keyframes mobilePulseGlow {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

@keyframes mobileSlowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ═══ HERO SECTION MOBILE OVERRIDES (max-width: 768px) ═══ */
@media (max-width: 768px) {
  /* ═══ MOBILE BACKGROUND GLOW ADJUSTMENTS ═══ */
  .bg-glow::before {
    top: -25% !important;
    left: -20% !important;
    width: 120vw !important;
    height: 120vw !important;
    background: radial-gradient(circle, rgba(150, 113, 225, 0.25) 0%, rgba(108, 92, 231, 0.1) 45%, transparent 75%) !important;
    border-radius: 50% !important;
  }

  .bg-glow::after {
    bottom: -20% !important;
    right: -25% !important;
    width: 130vw !important;
    height: 130vw !important;
    background: radial-gradient(circle, rgba(255, 162, 236, 0.32) 0%, rgba(150, 113, 225, 0.12) 45%, transparent 75%) !important;
    border-radius: 50% !important;
  }

  /* Prevent horizontal scroll globally on mobile (fixes Safari/Chrome viewport shifting) */
  html,
  body {
    overflow-x: hidden !important;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
  }

  main {
    overflow: hidden !important;
    width: 100% !important;
  }

  .hero {
    padding: calc(115px + env(safe-area-inset-top, 20px)) 0 20px !important;
  }

  .hero-inner {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Navbar: locked viewport position to prevent horizontal scroll shift */
  .navbar {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    transform: none !important;
    padding: 8px 16px !important;
    top: calc(44px + env(safe-area-inset-top, 20px)) !important;
    border-radius: 100px !important;
  }

  .nav-logo-img {
    height: 42px !important;
    width: auto !important;
    margin-top: -5px !important;
    margin-bottom: -5px !important;
    filter: drop-shadow(0 0 8px rgba(150, 113, 225, 0.5)) !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 8px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-menu-toggle svg {
    width: 20px !important;
    height: 20px !important;
  }

  .nav-links {
    background: rgba(10, 10, 30, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(150, 113, 225, 0.25) !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(150, 113, 225, 0.1) !important;
    padding: 24px 20px !important;
    gap: 12px !important;
  }

  .nav-links.active {
    display: flex !important;
    animation: navFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .nav-links a {
    font-size: 0.82rem !important;
    padding: 10px 0 !important;
    letter-spacing: 0.12em !important;
    border-bottom: 1px solid rgba(150, 113, 225, 0.1) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
  }

  .nav-links a:hover {
    color: var(--accent-lilac) !important;
    text-shadow: 0 0 12px rgba(150, 113, 225, 0.4) !important;
  }

  .nav-dropdown-content a {
    font-size: 0.76rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    border-bottom: none !important;
    padding: 8px 0 !important;
  }


  @keyframes navFadeIn {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Prevent projects marquee wrapper from stretching the screen width */
  .projects-marquee-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Hero text container positioning - pushed down */
  .hero-text {
    margin-top: 60px !important;
    padding: 0 10px !important;
  }

  /* Responsive Hero Heading - explicitly larger and impactful */
  .hero-h1 {
    display: block !important;
    font-size: clamp(3.1rem, 13vw, 4.6rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Center the H1 lines perfectly relative to the viewport width */
  .hero-line {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
    white-space: normal !important;
    font-size: clamp(3.1rem, 13vw, 4.6rem) !important; /* Explicitly larger and bolder */
  }

  /* Description text adjustment - optimized for mobile readability and premium look */
  .hero-sub,
  .hero p {
    font-size: 13.5px !important; /* Extremely elegant, compact and highly readable font size for mobile viewports */
    line-height: 1.65 !important; /* Comfortable line height for optimal body reading rhythm */
    color: var(--text-white) !important; /* Premium off-white to eliminate halation on mobile as well */
    max-width: 65ch !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.6) !important; /* Dual-layer shadow ensuring text stands out perfectly above active glows/grids */
    opacity: 1 !important; /* Max brightness mobile opacity */
    padding: 0 24px !important; /* Safe padding for modern smart device screens */
    margin: 0 auto 32px auto !important; /* Tighter vertical spacing to hero action elements below */
    max-width: 440px !important; /* Snug, elegant max-width for aesthetic wrapping and premium look */
    text-align: center !important;
    letter-spacing: -0.01em !important;
  }

  /* Button alignment and layout (stacking on mobile) */
  .hero-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 40px !important; /* Spacing from the bottom */
  }

  .hero-actions .shiny-cta,
  .hero-actions .btn-secondary {
    width: 100% !important;
    max-width: 280px !important;
    box-sizing: border-box !important;
  }

  /* Stats centering on mobile */
  .hero-stats {
    margin-top: 32px !important;
    padding-top: 24px !important;
    gap: 40px !important;
    border-top: 1px solid rgba(150, 113, 225, 0.1) !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* ═══ ABOUT ME SECTION MOBILE OVERRIDES ═══ */
  .about-section {
    padding: 60px 0;
  }

  .about-section .container-wide {
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
  }

  .about-grid-custom {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    text-align: center;
  }

  .about-col-new.left {
    width: 100%;
    max-width: 100%;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .about-block-heading {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
  }

  .about-divider {
    margin: 0 auto 24px auto;
  }

  .about-block-text {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 0;
    width: 100%;
  }

  .about-photo-center {
    position: static;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    order: 0;
  }

  .about-photo-frame {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/5;
    border-radius: 24px;
    height: auto !important;
  }

  .about-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
  }

  .about-wind,
  .about-wind::before,
  .about-wind::after {
    border-radius: 24px;
  }
}

/* ═══ SMARTPHONE ACCENT POSITIONING OVERRIDES (max-width: 600px) ═══ */
@media (max-width: 600px) {
  /* Force consistent wrapping and perfect mathematical alignment of the accent mark above the letter 'n' */
  .hero-line:last-child {
    width: min-content !important;
    display: inline-block !important;
    white-space: normal !important;
  }

  .hero-line:last-child::after {
    left: calc(50% + 2.22em) !important;
    right: auto !important;
    top: 1.3em !important;
  }
}

/* Hide Canvas AI Sphere Section on Mobile devices */
@media (max-width: 768px) {
  .hero-sphere-section {
    display: none !important;
  }

  .container {
    padding: 0 16px !important;
  }

  /* ═══ AI HUB MOBILE VIEW OVERRIDES ═══ */
  .ai-hub-section {
    padding: 60px 0 !important;
    overflow: hidden !important;
  }

  .ai-hub-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
    margin-top: 40px !important;
    min-height: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .ai-hub-nodes {
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: center !important;
  }

  .ai-hub-col {
    width: 100% !important;
    gap: 20px !important;
    align-items: center !important;
  }

  .ai-step-card {
    width: 100% !important;
    max-width: 440px !important; /* Perfect width for modern smartphones/tablets */
    padding: 20px 24px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    transform: none !important;
    text-align: left !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
  }

  .ai-step-card:hover {
    transform: none !important; /* No translation shifts on hover to prevent layout glitches on touch */
    box-shadow: 
      inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
      0 0 20px rgba(150, 113, 225, 0.2),
      0 10px 30px rgba(0, 0, 0, 0.4) !important;
  }

  .ai-hub-core-wrap {
    width: 280px !important;
    height: 280px !important;
    margin: 0 auto !important;
    order: -1 !important; /* Place AI core above cards for better visual hierarchy on mobile */
  }

  .ai-processor {
    width: 220px !important;
    height: 220px !important;
    border-radius: 36px !important;
    box-shadow: 
      0 0 30px rgba(150, 113, 225, 0.3),
      inset 0 0 20px rgba(150, 113, 225, 0.15) !important;
  }

  .proc-ai-text {
    font-size: 3.8rem !important;
    letter-spacing: 4px !important;
  }

  .proc-aura {
    width: 260px !important;
    height: 260px !important;
  }

  /* ═══ CONTACT SECTION MOBILE VIEW OVERRIDES (max-width: 768px) ═══ */
  .contact-section {
    padding: 60px 0 40px !important;
    overflow: hidden !important;
  }

  .contact-section::before {
    width: 100% !important;
    height: 350px !important;
    background: radial-gradient(ellipse at top, rgba(150, 113, 225, 0.2) 0%, rgba(209, 173, 242, 0.05) 50%, transparent 80%) !important;
  }

  .contact-section .section-title {
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.03em !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    margin-top: 36px !important;
  }

  .contact-info-block h3 {
    font-size: clamp(1.2rem, 5vw, 1.45rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  .contact-info-block p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  .contact-direct {
    gap: 12px !important;
  }

  .contact-direct a {
    font-size: clamp(0.95rem, 4.5vw, 1.1rem) !important;
    gap: 10px !important;
  }

  .contact-direct a svg {
    width: 18px !important;
    height: 18px !important;
  }

  .social-wrapper {
    height: auto !important;
    padding-top: 20px !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
  }

  .contact-form {
    margin-top: 16px !important;
    padding: 28px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 0 30px rgba(150, 113, 225, 0.1), 0 0 60px rgba(209, 173, 242, 0.05) !important;
  }

  .form-group {
    margin-bottom: 16px !important;
  }

  .form-group label {
    font-size: 0.72rem !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.1em !important;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
  }

  .form-group textarea {
    min-height: 120px !important;
  }

  .contact-form .button {
    height: 56px !important;
    font-size: 16px !important;
    padding: 12px 16px !important;
    min-width: unset !important;
    width: 100% !important;
  }

  .contact-form .button::before {
    inset: 4px 4px 4px 4px !important;
  }

  /* ═══ FOOTER MOBILE VIEW OVERRIDES (max-width: 768px) ═══ */
  .footer {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 32px 16px 40px 16px !important; /* Elegant padding with touch safety space */
    gap: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 20, 0.8) !important; /* Premium glassmorphism overlay */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(150, 113, 225, 0.2) !important;
  }

  .footer > div {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .footer-logo-img {
    height: 56px !important; /* Visual sweet-spot: clear and prominent logo, 100% mobile-safe */
    width: auto !important;
    margin-bottom: 4px !important;
    filter: drop-shadow(0 0 10px rgba(150, 113, 225, 0.6)) !important;
  }

  .footer p {
    font-size: 0.72rem !important; /* High-readability monospace font size */
    line-height: 1.6 !important;
    text-align: center !important;
    margin: 0 !important;
    max-width: 290px !important; /* Wrap logically to prevent overflow on narrow screens */
    color: var(--text-muted) !important;
    letter-spacing: 0.04em !important;
  }

  .footer-links {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  .footer-links a {
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    padding: 8px 16px !important;
    color: var(--accent-pale) !important;
    background: rgba(150, 113, 225, 0.05) !important;
    border: 1px solid rgba(150, 113, 225, 0.15) !important;
    border-radius: 100px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-transform: uppercase !important;
  }

  .footer-links a:hover,
  .footer-links a:active {
    background: rgba(150, 113, 225, 0.15) !important;
    border-color: var(--accent-lilac) !important;
    color: var(--text-white) !important;
    transform: scale(0.96) !important;
  }

  /* ═══ MOBILE DROPDOWN (MOJA OFERTA) — PURE PORTFOLIO GLASS STYLE ═══ */
  .nav-link-dropdown {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 48px !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    color: var(--text-white) !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
  }
  
  .nav-link-dropdown::after {
    display: none !important; /* Hide chevron on mobile so it doesn't look like a collapsible accordion */
  }

  .nav-dropdown-content {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important; /* Fully flat, no heavy background box */
    border: none !important;
    border-left: 2px solid rgba(150, 113, 225, 0.35) !important; /* Sleek vertical hierarchy line */
    border-radius: 0 !important;
    padding: 4px 0 4px 16px !important; /* Indent sub-links neatly to the right */
    gap: 14px !important; /* Comfortable tap target gap */
    width: auto !important;
    max-width: 240px !important;
    margin: 8px auto 8px auto !important;
    box-shadow: none !important;
    align-items: flex-start !important;
  }
  
  .nav-dropdown-content a {
    font-size: 0.7rem !important; /* Sophisticated smaller text */
    font-family: var(--font-mono) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    padding: 8px 0 !important;
    min-height: 48px !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: color 0.25s ease, text-shadow 0.25s ease !important;
  }
  
  /* Modern premium touch: neon violet bullet dot before each sub-link */
  .nav-dropdown-content a::before {
    content: '•';
    color: var(--accent-lilac);
    opacity: 0.5;
    font-size: 0.8rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  
  .nav-dropdown-content a:hover::before,
  .nav-dropdown-content a:active::before {
    opacity: 1;
    transform: scale(1.3);
  }
  
  .nav-dropdown-content a:hover,
  .nav-dropdown-content a:active {
    background: transparent !important;
    color: var(--text-white) !important;
    text-shadow: 0 0 10px rgba(150, 113, 225, 0.6) !important;
  }
  
  /* Prevent any potential horizontal overflow */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   DEDYKWANY MOBILNY STOS PROJEKTÓW 3D (A'LA LAYZO)
   ========================================================================== */

/* Hide marquee on mobile and show stack */
@media (max-width: 767px) {
  .projects-desktop-only {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .projects-mobile-stack {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .projects-mobile-stack {
    display: block;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .mobile-stack-container {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 95px 0 115px;
  }

  /* Plain clean background behind the card stack, matching user's visual spec */
  .mobile-stack-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
  }

  .mobile-stack-cards-wrapper {
    position: relative;
    width: 320px;
    height: 377px;
    perspective: 1000px;
    transform-style: preserve-3d;
    z-index: 2;
    margin: 0 auto;
  }

  .mobile-stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, -400px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  }

  /* 3D stacked states precisely mirroring layzo perspective positioning with progressive sizes */
  .mobile-stack-card.active {
    transform: translate3d(0, 0, 0) rotateX(1deg) scale(1);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  }

  .mobile-stack-card.next-1 {
    transform: translate3d(0, -39px, -50px) rotateX(0deg) scale(0.94);
    opacity: 1;
    z-index: 9;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }

  .mobile-stack-card.next-2 {
    transform: translate3d(0, 50px, -100px) rotateX(0deg) scale(0.88);
    opacity: 1;
    z-index: 8;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  }

  .mobile-stack-card.next-3 {
    transform: translate3d(0, -86px, -150px) rotateX(0deg) scale(0.82);
    opacity: 1;
    z-index: 7;
    pointer-events: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  }

  .mobile-stack-card.next-all {
    transform: translate3d(0, 98px, -200px) rotateX(0deg) scale(0.76);
    opacity: 1;
    z-index: 6;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .mobile-stack-card.prev-1 {
    transform: translate3d(0, -110%, 150px) rotateX(6deg) scale(1);
    opacity: 0;
    z-index: 12;
    pointer-events: none;
  }

  .mobile-stack-card.prev-all {
    transform: translate3d(0, 0, -300px) scale(0.7);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
  }

  /* Web mockups framing styling */
  .mobile-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    text-decoration: none;
  }

  .mobile-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
  }

  .mobile-card-frame {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 35%);
    pointer-events: none;
  }

  .mobile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-card-dots {
    display: flex;
    gap: 6px;
  }

  .mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
  }

  .mobile-dot._01 { background: #ff5f56; } /* OS window close dot */
  .mobile-dot._02 { background: #ffbd2e; } /* OS window minimize dot */
  .mobile-dot._03 { background: #27c93f; } /* OS window maximize dot */

  .mobile-card-menu-icon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-card-bottom {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
  }

  .mobile-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border-radius: 9999px;
    padding: 7px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
  }

  .mobile-card-pill-spark {
    width: 13px;
    height: 13px;
    color: #6366F1; /* Beautiful violet-purple spark icon */
    fill: #6366F1;
    flex-shrink: 0;
  }

  .mobile-card-pill-text {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a; /* Slate-900 high contrast text */
    letter-spacing: -0.015em;
    white-space: nowrap;
  }

  /* Controls and descriptions */
  .mobile-stack-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 320px;
    margin-top: 90px;
    padding: 0 10px;
    gap: 12px;
    z-index: 3;
  }

  .mobile-stack-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, border-color 0.25s;
    
    pointer-events: auto;
    flex-shrink: 0;
  }

  .mobile-stack-btn:active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
  }

  .mobile-stack-details {
    flex: 1;
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-project-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
  }

  .mobile-project-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
  }

  .mobile-stack-indicators {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    z-index: 3;
  }

  .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
  }

  .indicator.active {
    background: var(--accent-pale);
    transform: scale(1.3);
  }
}

/* ==========================================================
   MOBILE-ONLY STICKY HEADER SHRINK EFFECT (BELOW 768PX)
   ========================================================== */
@media (max-width: 767px) {
  /* Base Mobile Header - Centered Fixed Position */
  .navbar {
    position: fixed !important;
    left: 50% !important;
    top: 72px !important;
    top: calc(32px + env(safe-area-inset-top, 40px)) !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 32px) !important;
    max-width: 480px !important;
    height: 56px !important;
    transition: all 0.3s ease-in-out !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 16px !important;
  }

  /* Scrolled / Shrunk State */
  .navbar.scrolled {
    width: 120px !important;
    height: 48px !important;
    padding: 6px 12px !important;
    top: 48px !important;
    top: calc(20px + env(safe-area-inset-top, 28px)) !important;
  }

  /* Logo Image Transition */
  .nav-logo-img {
    transition: all 0.3s ease-in-out !important;
  }

  .navbar.scrolled .nav-logo-img {
    height: 32px !important;
  }

  /* Dropdown Menu Width Override for Shrunk State */
  .navbar .nav-links {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 32px) !important;
    max-width: 450px !important;
    top: calc(100% + 10px) !important;
    transition: all 0.3s ease-in-out !important;
  }
}

/* Wymuszone z audytu: dostępny focus-visible */
:focus-visible {
  outline: 3px solid var(--accent-pale);
  outline-offset: 4px;
  box-shadow: 0 0 15px rgba(209, 173, 242, 0.8);
}

/* ============================================
   PERFORMANCE FALLBACKS (Audit Point 11)
   ============================================ */
html[data-perf="low"] * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-perf="low"] .navbar {
  background-color: rgba(10, 10, 15, 0.98) !important;
}

html[data-perf="low"] .glass,
html[data-perf="low"] .bento-card,
html[data-perf="low"] .pricing-card,
html[data-perf="low"] .single-service-card-oldstyle {
  background-color: rgba(20, 20, 30, 0.95) !important;
}

/* Accessibility screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- CONTACT NAV BUTTON ---------- */
.nav-links a.nav-btn-contact {
  box-sizing: border-box !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  padding: 0 32px !important;
  border-radius: 100px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(150, 113, 225, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.nav-links a.nav-btn-contact:hover {
  background: rgba(150, 113, 225, 0.08) !important;
  border-color: var(--accent-pale) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15) !important;
  text-shadow: none !important;
}

.nav-links a.nav-btn-contact.active {
  background: rgba(150, 113, 225, 0.12) !important;
  border-color: var(--accent-lilac) !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: 0 0 20px rgba(150, 113, 225, 0.2) !important;
}

/* ==========================================================
   NAVIGATION CONTACT BUTTON MOBILE OVERRIDES
   ========================================================== */
@media (max-width: 1023px) {
  .nav-links a.nav-btn-contact {
    box-sizing: border-box !important;
    line-height: 1 !important;
    display: inline-flex !important;
    width: 100% !important;
    max-width: 280px !important;
    margin-top: 20px !important;
    margin-bottom: 12px !important;
    padding: 0 32px !important;
    border: 1px solid rgba(150, 113, 225, 0.3) !important;
    border-bottom: 1px solid rgba(150, 113, 225, 0.3) !important;
    align-self: center !important;
    justify-content: center !important;
    min-height: 56px !important;
  }
  
  .nav-links a.nav-btn-contact:hover {
    background: rgba(150, 113, 225, 0.08) !important;
    border-color: var(--accent-pale) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15) !important;
    text-shadow: none !important;
  }

  .nav-links a.nav-btn-contact.active {
    background: rgba(150, 113, 225, 0.12) !important;
    border-color: var(--accent-lilac) !important;
    color: #fff !important;
    text-shadow: none !important;
  }
}

/* HTML Utility Classes */
.ext-consent { margin-top: 16px; padding: 12px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); }
.ext-consent-p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; text-align: center; }
.ext-consent-a { color: var(--accent-pale); text-decoration: underline; font-weight: 500; }
.ext-btn { margin-top: 24px; width: 100%; }
.ext-section { content-visibility: auto; contain-intrinsic-size: 0 1000px; padding-top: 60px; padding-bottom: 60px; background: transparent; position: relative; z-index: 20; }
.ext-form-wrap { position: relative; z-index: 10; padding: 60px 0; overflow: hidden; display: flex; justify-content: center; }
.ext-mt-0 { margin-top: 0; }
.ext-flex-12 { display: flex; align-items: center; gap: 12px; }


