/* ============================================
   MEDIA BITE — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --blue:        #2B5BFF;
  --blue-dark:   #1A3FCC;
  --blue-light:  #EEF2FF;
  --black:       #0D0D0D;
  --dark:        #111827;
  --mid:         #374151;
  --muted:       #6B7280;
  --light:       #F3F4F6;
  --white:       #FFFFFF;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.14);
  --transition:  0.28s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 7rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43,91,255,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(0,0,0,0.2);
}
.btn-outline-dark:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  transition: var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.nav-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); }

.nav-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-ds-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-ds-link:hover { color: var(--blue); }

/* Lang switcher */
.lang-switcher {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;
  background: var(--light);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.lang-btn.active {
  background: var(--blue);
  color: var(--white);
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(43,91,255,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(43,91,255,0.10) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left { }

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43,91,255,0.15);
  border: 1px solid rgba(43,91,255,0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7B9FFF;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-actions .btn {
  width: 100%;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2.5s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── CLIENTS ── */
.clients {
  padding: 4rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--light);
}

.clients-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.clients-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  gap: 2.5rem 3.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.client-slot {
  width: 150px;
  height: 58px;
}
.client-slot::part(frame) {
  background: transparent;
}

/* ── SERVICES ── */
.services { background: var(--light); }

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.services-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-top: 3px solid var(--light);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
  border-top-color: var(--blue);
}

.service-card.featured {
  background: var(--blue);
  color: var(--white);
  border-top-color: var(--blue-dark);
}
.service-card.featured .service-title { color: var(--white); }
.service-card.featured .service-desc { color: rgba(255,255,255,0.75); }
.service-card.featured .service-link { color: rgba(255,255,255,0.9); }
.service-card.featured .service-link::after { background: rgba(255,255,255,0.9); }
.service-card.featured:hover { border-color: var(--blue-dark); }

.service-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  position: relative;
}
.service-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: var(--transition);
}
.service-link:hover::after { width: 100%; }

/* ── WORK / REALIZACJE ── */
.work { background: var(--white); }

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.work-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.work-header p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 360px;
  text-align: right;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #E9EDF7 0%, #D8E0F1 100%);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.work-card:hover .work-card-img {
  transform: scale(1.04);
}

.work-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1a1f2e 0%, #243050 100%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.work-card:hover .work-card-placeholder {
  transform: scale(1.04);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 55%);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card-tag {
  display: inline-block;
  background: rgba(43,91,255,0.8);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  width: fit-content;
}

.work-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.work-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* ── ŻABKA — ANIMACJE ── */
.zabka-anim { background: var(--light); }

.za-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.25rem;
}
.za-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.75rem 0 0.9rem;
}
.za-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.za-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.za-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #0d0d0d;
  display: block;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .za-grid { grid-template-columns: 1fr; }
}

/* ── WHY US ── */
.why {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43,91,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.why-header {
  text-align: center;
  margin-bottom: 4rem;
}

.why-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.why-header p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(43,91,255,0.4);
  transform: translateY(-4px);
}

.why-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(124,156,255,0.85);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.why-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.why-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* ── CTA ── */
.cta-section {
  background: var(--blue);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 65%);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -50px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,0,80,0.15) 0%, transparent 65%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ── FOOTER ── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 3rem 0;
}

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

.footer-logo img { height: 28px; opacity: 0.7; }

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

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.82rem;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }
  .container { padding: 0 1.25rem; }

  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { gap: 0.75rem; }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .work-header { flex-direction: column; align-items: flex-start; }
  .work-header p { text-align: left; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .clients-logos { gap: 2rem 1.5rem; max-width: 100%; }
}
