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

:root {
  --bg:       #0a0a0c;
  --bg2:      #111116;
  --bg3:      #17171e;
  --line:     rgba(255,255,255,.08);
  --accent:   #e8ff47;
  --accent2:  #ff5c5c;
  --text:     #e8e8ef;
  --muted:    #9f9fad;
  --font-h:   'Zalando Sans Expanded', sans-serif;
  --font-b:   'DM Sans', sans-serif;
  --nav-h:    68px;
  --radius:   4px;
  --trans:    .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ──────────────────────────────────── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}
#cursor-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  position: absolute; transform: translate(-50%,-50%);
  transition: transform .1s;
}
#cursor-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: absolute; transform: translate(-50%,-50%);
  transition: width .3s, height .3s, transform .1s, opacity .3s;
  opacity: .6;
}
body.hovering #cursor-ring { width: 56px; height: 56px; opacity: 1; }

/* ── NOISE OVERLAY ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── NAVBAR ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 500;
  display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 80px);
  border-bottom: 1px solid transparent;
  transition: background var(--trans), border-color var(--trans), backdrop-filter var(--trans);
}
nav.scrolled {
  background: rgba(10,10,12,.85);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}
.nav-logo {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .nav-logo { font-size: clamp(.55rem, 3.2vw, .85rem); }
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color var(--trans);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ── Przełącznik języka ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 99px;
  font-family: var(--font-b);
  font-size: .72rem;
  letter-spacing: .06em;
  cursor: none;
  transition: var(--trans);
}
.lang-btn img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c !important;
  font-weight: 600;
}

.lang-switcher--mobile {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.lang-switcher--mobile .lang-btn {
  padding: 10px 24px;
  font-size: .9rem;
  border-radius: 99px;
  cursor: pointer;
}
.lang-switcher--mobile .lang-btn img {
  width: 20px;
  height: 14px;
}

@media (max-width: 768px) {
  .lang-switcher { display: none !important; }
}
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; margin-left: auto; cursor: pointer;
  padding: 6px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text);
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 490;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--trans);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-h);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  transition: color var(--trans);
}
.mobile-menu a:hover { color: var(--accent); }

/* ── HERO ───────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) clamp(20px,5vw,80px) clamp(40px,6vw,80px);
  position: relative; overflow: hidden;
}

/* zdjęcie pełna szerokość jako tło */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* gradient przyciemniający zdjęcie — tekst zawsze czytelny */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top,  rgba(10,10,12,1)   0%,
                              rgba(10,10,12,.75) 35%,
                              rgba(10,10,12,.3)  70%,
                              rgba(10,10,12,.5)  100%);
}

.hero-bg {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 60% 50% at 20% 90%, rgba(232,255,71,.04) 0%, transparent 70%);
}

.hero-label {
  position: relative; z-index: 3;
  font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp .8s .2s forwards;
}
.hero-title {
  position: relative; z-index: 3;
  font-family: var(--font-h);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  opacity: 0; animation: fadeUp .8s .35s forwards;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-subtitle {
  position: relative; z-index: 3;
  max-width: 460px;
  color: var(--muted);
  font-size: 1rem;
  margin-top: 28px;
  font-weight: 300;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}
.hero-cta {
  position: relative; z-index: 3;
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 40px;
  opacity: 0; animation: fadeUp .8s .65s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-b);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--trans);
  cursor: none;
}
.btn-primary {
  background: var(--accent); color: #0a0a0c;
  font-weight: 600;
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 32px; right: clamp(20px,5vw,80px);
  z-index: 1;
  display: flex; align-items: center; gap: 12px;
  font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fadeUp .8s .8s forwards;
}
.hero-scroll-line {
  width: 40px; height: 1px; background: var(--muted);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  animation: scanline 2s 1s infinite;
}
@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── SECTION SHARED ──────────────────────────────────── */
section { padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 80px); }

.section-label {
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--muted);
  max-width: 480px;
  font-weight: 300;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-header { margin-bottom: clamp(36px, 5vw, 56px); }

/* ── ABOUT ───────────────────────────────────────────── */
#about {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-text p { color: var(--muted); font-weight: 300; margin-bottom: 16px; }
.about-text p:last-child { margin: 0; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bg2);
  padding: 28px 24px;
  transition: background var(--trans);
}
.stat:hover { background: var(--bg3); }
.stat-num {
  font-family: var(--font-h);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ── GALLERY 2D ──────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 7px 18px;
  font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 99px;
  cursor: none;
  transition: var(--trans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #0a0a0c;
}

/* ── Carousel wrapper (desktop) ── */
.gallery-carousel {
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.gallery-item {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg3);
  cursor: none;
}
.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,12,.9) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--trans);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 {
  font-family: var(--font-h);
  font-size: 1rem; font-weight: 700;
}
.gallery-overlay span {
  font-size: .78rem; color: var(--accent);
  letter-spacing: .08em; text-transform: uppercase;
}
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── Strzałki – zawsze widoczne na desktopie przez CSS ── */
.gallery-arrow {
  position: absolute; top: 50%; z-index: 20;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(10,10,12,.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  display: flex;
  align-items: center; justify-content: center;
  transition: var(--trans);
  cursor: none !important;
}
.gallery-arrow svg { width: 20px; height: 20px; pointer-events: none; }
.gallery-arrow:hover:not(:disabled) { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }
.gallery-arrow:disabled { opacity: .2; cursor: none !important; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

/* ── Dots – zawsze widoczne na desktopie przez CSS ── */
.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px; margin-top: 28px;
  min-height: 22px;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  padding: 0; cursor: none !important;
  transition: var(--trans);
}
.gallery-dot.active { background: var(--accent); transform: scale(1.3); }
.gallery-dot:hover { background: var(--muted); }

/* ── Pokaż więcej ── */
.gallery-more-wrap { display: none; }
.gallery-more-wrap.g-show { display: flex !important; justify-content: center; margin-top: 28px; }

.gallery-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-b);
  font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
}
.gallery-more-btn svg { width: 16px; height: 16px; }
.gallery-more-btn:hover { border-color: var(--accent); color: var(--accent); }
.lightbox {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(10,10,12,.95);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  transform: scale(.95);
  transition: transform .3s;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: none; color: var(--text);
  font-size: 1.2rem; cursor: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ── MOTION DESIGN ───────────────────────────────────── */
#motion {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}
.video-card {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--line);
  transition: border-color var(--trans), transform var(--trans);
  overflow: hidden;
  cursor: none;
}
.video-card:hover { border-color: rgba(232,255,71,.3); transform: translateY(-4px); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg);
  overflow: hidden;
}
.video-thumb iframe {
  width: 100%; height: 100%;
  border: none;
  pointer-events: none;
}
.video-thumb .play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,.4);
  transition: background var(--trans);
}
.video-card:hover .play-overlay { background: rgba(10,10,12,.1); }
.play-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--trans), background var(--trans);
}
.video-card:hover .play-btn { transform: scale(1.12); background: #fff; }
.play-btn svg { width: 18px; height: 18px; fill: #0a0a0c; margin-left: 3px; }

.video-card.playing .play-overlay { display: none; }
.video-card.playing .video-thumb iframe { pointer-events: all; }

/* miniatura YT z linkiem */
.yt-thumb-link {
  display: block;
  width: 100%; height: 100%;
  position: relative;
  text-decoration: none;
}
.yt-thumb-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.video-info { padding: 20px 22px 22px; }
.video-info h3 {
  font-family: var(--font-h);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 4px;
}
.video-info p { font-size: .85rem; color: var(--muted); font-weight: 300; }
.video-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(232,255,71,.3);
  color: var(--accent);
  border-radius: 99px;
}

/* ── WEB DESIGN ──────────────────────────────────────── */
.web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}
.web-card {
  background: var(--bg3);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--trans), transform var(--trans);
}
.web-card:hover { border-color: rgba(232,255,71,.3); transform: translateY(-4px); }
.web-preview {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.web-preview iframe {
  width: 200%; height: 200%;
  border: none;
  transform: scale(.5);
  transform-origin: top left;
  pointer-events: none;
}
.web-preview-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg3) 0%, transparent 40%);
  display: flex; align-items: center; justify-content: center;
}
.web-open-btn {
  padding: 10px 22px;
  background: var(--accent); color: #0a0a0c;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  opacity: 0; transform: translateY(8px);
  transition: var(--trans);
  cursor: none;
}
.web-card:hover .web-open-btn { opacity: 1; transform: translateY(0); }
.web-info { padding: 20px 22px 22px; }
.web-info h3 {
  font-family: var(--font-h);
  font-size: 1rem; font-weight: 700;
  margin-bottom: 4px;
}
.web-info p { font-size: .85rem; color: var(--muted); font-weight: 300; }
.web-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.web-tag {
  padding: 3px 10px;
  font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 99px;
}

/* ── CONTACT ─────────────────────────────────────────── */
#contact {
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.contact-inner { max-width: 640px; }
.contact-links {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.contact-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  border-radius: var(--radius);
  transition: var(--trans);
  cursor: none;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); }
.contact-link svg { width: 18px; height: 18px; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  padding: 28px clamp(20px,5vw,80px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
footer p { font-size: .78rem; color: var(--muted); }
footer a { color: var(--accent); text-decoration: none; }

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor { display: none; }

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

  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* galeria: 2 kolumny, strzałki ukryte, siatka zamiast karuzeli */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-arrow { display: none !important; }
  .gallery-dots  { display: none !important; }

  .motion-grid  { grid-template-columns: 1fr; }
  .web-grid     { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(2.4rem, 11vw, 4rem); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn { text-align: center; justify-content: center; }
}
