

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

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

:root {
  --bg-void:       #070B13;
  --bg-deep:       #0B1320;
  --blue:          #1D4ED8;
  --blue-bright:   #3B82F6;
  --blue-glow:     rgba(29,78,216,0.35);
  --blue-subtle:   rgba(29,78,216,0.12);
  --blue-line:     rgba(59,130,246,0.25);
  --glass-bg:      rgba(255,255,255,0.04);
  --glass-border:  rgba(255,255,255,0.08);
  --glass-hover:   rgba(255,255,255,0.07);
  --glass-strong:  rgba(255,255,255,0.09);
  --text-primary:  #F0F4FF;
  --text-secondary:rgba(200,215,255,0.6);
  --text-muted:    rgba(150,175,220,0.4);
  --text-accent:   #93C5FD;
  --f-display:     'Playfair Display', Georgia, serif;
  --f-body:        'DM Sans', sans-serif;
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* Delikatna siatka — dodaje głębi, żeby ciemne tło nie zlewało się z elementami */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(140,170,225,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,170,225,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 55%, transparent 100%);
}

.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(110px); animation: orbFloat 22s ease-in-out infinite; }
.bg-orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(29,78,216,0.5) 0%, transparent 70%); top: -250px; left: -150px; opacity: 0.22; animation-duration: 26s; }
.bg-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(30,58,138,0.6) 0%, transparent 70%); bottom: 5%; right: -80px; opacity: 0.18; animation-duration: 19s; animation-delay: -9s; }
.bg-orb-3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(3,105,161,0.5) 0%, transparent 70%); top: 45%; left: 38%; opacity: 0.12; animation-duration: 23s; animation-delay: -14s; }
@keyframes orbFloat { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(35px,-25px) scale(1.05)} 66%{transform:translate(-18px,18px) scale(0.96)} }

#cursor { width: 6px; height: 6px; background: var(--blue-bright); border-radius: 50%; position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%,-50%); transition: width .3s var(--ease-spring), height .3s var(--ease-spring), background .3s; box-shadow: 0 0 10px var(--blue-bright); }
#cursor-ring { width: 30px; height: 30px; border: 1px solid rgba(59,130,246,0.35); border-radius: 50%; position: fixed; z-index: 9998; pointer-events: none; transform: translate(-50%,-50%); }
body:has(a:hover) #cursor, body:has(button:hover) #cursor { width: 12px; height: 12px; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,0.8); }
body:has(a:hover) #cursor-ring, body:has(button:hover) #cursor-ring { width: 46px; height: 46px; }

#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 24px 52px; transition: all .5s var(--ease-smooth); }
#nav.scrolled { padding: 14px 52px; background: rgba(3,9,18,0.75); backdrop-filter: blur(32px) saturate(180%); -webkit-backdrop-filter: blur(32px) saturate(180%); border-bottom: 1px solid var(--glass-border); }
.nav-logo { font-family: var(--f-display); font-size: 20px; font-weight: 400; color: var(--text-primary); text-decoration: none; letter-spacing: 0.04em; }
.nav-logo .dot { color: var(--blue-bright); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-size: 12px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary); text-decoration: none; transition: color .3s; cursor: none; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { font-size: 11px; font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-primary); background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 10px 22px; border-radius: 100px; text-decoration: none; cursor: none; backdrop-filter: blur(12px); transition: all .3s var(--ease-out); }
.nav-cta:hover { background: var(--blue-subtle); border-color: var(--blue-line); box-shadow: 0 0 22px var(--blue-glow); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; }
.nav-hamburger span { width: 22px; height: 1px; background: var(--text-secondary); display: block; transition: all .3s; }

/* ══════════════════════════════════════════
   HERO — MacBook ze zdjęciami (scroll reveal)
══════════════════════════════════════════ */
#hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 84px 0 132px;
}

/* Ambient tło */
.hero-ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.hero-orb-1 { width: 620px; height: 620px; top: -180px; left: -160px; background: radial-gradient(circle, rgba(29,78,216,0.40), transparent 68%); }
.hero-orb-2 { width: 560px; height: 560px; bottom: -200px; right: -120px; background: radial-gradient(circle, rgba(59,130,246,0.30), transparent 70%); }
.hero-fx-grid { position: absolute; inset: 0; opacity: 0.04; background-image: linear-gradient(rgba(59,130,246,1) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,1) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 40%, transparent 100%); mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 40%, transparent 100%); }

/* ── Treść centralna (nad kartami) ── */
.hero-center {
  position: relative; z-index: 3;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 0 32px; text-align: center;
}
.hero-kicker { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; opacity: 0; transform: translateY(14px); }
.hero-kicker-brand { font-family: var(--f-display); font-size: 15px; letter-spacing: 0.04em; color: var(--text-accent); }
.hero-kicker-line { width: 34px; height: 1px; background: var(--blue-line); }
.hero-kicker-role { font-size: 10px; font-weight: 300; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-muted); }

.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 400; line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero-line-wrap { display: block; overflow: hidden; padding-bottom: 0.24em; }
.hero-line { display: block; transform: translateY(120%); will-change: transform; }
.hero-em {
  font-style: italic;
  background: linear-gradient(130deg, #93C5FD 0%, #3B82F6 45%, #1D4ED8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

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

.hero-sub { font-size: 15px; font-weight: 300; color: var(--text-secondary); letter-spacing: 0.04em; opacity: 0; transform: translateY(24px); margin: 0 auto 34px; max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; align-items: center; justify-content: center; opacity: 0; transform: translateY(18px); flex-wrap: wrap; }
.btn-glass { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; background: var(--glass-strong); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); border-radius: 14px; color: var(--text-primary); font-family: var(--f-body); font-size: 13px; font-weight: 300; letter-spacing: 0.07em; text-decoration: none; cursor: none; transition: all .35s var(--ease-out); }
.btn-glass:hover { background: var(--blue-subtle); border-color: var(--blue-line); box-shadow: 0 8px 32px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-blue { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; background: var(--blue); border: 1px solid rgba(59,130,246,0.35); border-radius: 14px; color: #fff; font-family: var(--f-body); font-size: 13px; font-weight: 300; letter-spacing: 0.07em; text-decoration: none; cursor: none; transition: all .35s var(--ease-out); box-shadow: 0 4px 22px rgba(29,78,216,0.4); }
.btn-blue:hover { background: #2563EB; box-shadow: 0 8px 38px rgba(29,78,216,0.6); transform: translateY(-2px); }
.hero-arrow-icon { transition: transform .35s var(--ease-out); }
.btn-glass:hover .hero-arrow-icon { transform: translateX(5px); }

/* ══ Pływające karty portfolio (orbitują wokół treści) ══ */
.hero-cards {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  perspective: 1300px;
}
.hero-card {
  position: absolute;
  width: clamp(120px, 12vw, 180px);
  aspect-ratio: 3 / 4;
  pointer-events: auto;
  opacity: 1;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero-card-inner {
  position: relative; width: 100%; height: 100%;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: 0 30px 60px -26px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
  transition: box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
  animation: cardFloat var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.hero-card-inner::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(5,8,15,0.72) 0%, transparent 44%);
}
.hero-card-media { position: absolute; inset: 0; }
.hero-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(0.84) saturate(0.95);
  transition: transform .6s var(--ease-out), filter .5s;
}
.hero-card-tag {
  position: absolute; left: 11px; bottom: 11px; z-index: 2;
  font-size: 9px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-primary);
  padding: 5px 11px; border-radius: 100px;
  background: rgba(7,11,19,0.55);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-card:hover { z-index: 9; }
.hero-card:hover .hero-card-inner {
  border-color: var(--blue-line);
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.9), 0 0 32px var(--blue-glow);
  animation-play-state: paused;
}
.hero-card:hover .hero-card-media img { transform: scale(1.08); filter: brightness(1.02) saturate(1.05); }

@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%     { transform: translateY(-16px) rotate(calc(var(--rot, 0deg) * -0.6)); }
}

/* Pozycje 6 kart wokół treści */
.hc-1 { top: 13%; left: 6%;   --rot: -6deg; --dur: 7.6s; --delay: 0s;   }
.hc-2 { top: 16%; right: 6.5%; --rot: 5deg;  --dur: 8.4s; --delay: .7s;  }
.hc-3 { top: 44%; left: 2.5%;  width: clamp(140px, 14vw, 208px); --rot: 4deg;  --dur: 9.1s; --delay: .3s; }
.hc-4 { top: 46%; right: 2%;   width: clamp(140px, 14vw, 208px); --rot: -5deg; --dur: 8.7s; --delay: .9s; }
.hc-5 { bottom: 9%;  left: 12%; --rot: -3deg; --dur: 7.9s; --delay: 1.1s; }
.hc-6 { bottom: 11%; right: 11%; --rot: 3deg; --dur: 8.9s; --delay: .5s;  }

/* Scroll hint */
.hero-scroll-hint { position: absolute; bottom: 38px; left: 52px; display: flex; align-items: center; gap: 14px; opacity: 0; z-index: 3; }
.scroll-pill { width: 24px; height: 42px; border: 1px solid var(--glass-border); border-radius: 100px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-dot { width: 3px; height: 7px; background: var(--blue-bright); border-radius: 100px; animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100%{transform:translateY(0);opacity:1} 55%{transform:translateY(9px);opacity:0.25} }
.hero-scroll-hint span { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); }

.marquee-wrap { position: relative; padding: 20px 0; overflow: hidden; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.marquee-wrap::before, .marquee-wrap::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none; }
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-void), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg-void), transparent); }
.marquee-track { display: flex; gap: 52px; animation: marquee 24s linear infinite; white-space: nowrap; }
.marquee-track span { font-family: var(--f-display); font-size: 14px; font-style: italic; color: var(--text-muted); flex-shrink: 0; }
.marquee-track .sep { color: var(--blue-bright); font-style: normal; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

section { position: relative; z-index: 1; padding: 130px 52px; }
.tag-label { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 18px; }
.tag-label::before { content: ''; display: block; width: 18px; height: 1px; background: var(--blue-bright); }
.section-heading { font-family: var(--f-display); font-size: clamp(34px, 4vw, 56px); font-weight: 400; line-height: 1.1; color: var(--text-primary); margin-bottom: 20px; }
.section-heading em { font-style: italic; color: var(--text-accent); }

.circle-highlight { position: relative; display: inline-block; white-space: nowrap; }
.circle-highlight svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: calc(100% + 30px); height: calc(100% + 24px); pointer-events: none; overflow: visible; }
.circle-highlight svg ellipse { fill: none; stroke: var(--blue-bright); stroke-width: 1.8; stroke-dasharray: 1000; stroke-dashoffset: 1000; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(59,130,246,0.65)); }
.circle-highlight.drawn svg ellipse { animation: drawCircle 1.2s var(--ease-out) forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }

.marker { position: relative; display: inline; }
.marker::after { content: ''; position: absolute; left: -3px; bottom: 0px; width: 0; height: 9px; border-radius: 2px; transition: width 0.85s var(--ease-out); z-index: -1; }
.marker-blue::after  { background: rgba(29,78,216,0.32); }
.marker-warm::after  { background: rgba(251,191,36,0.26); }
.marker-teal::after  { background: rgba(20,184,166,0.28); }
.marker.drawn::after { width: calc(100% + 6px); }

#portfolio { background: transparent; }
.portfolio-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { font-size: 11px; font-weight: 300; letter-spacing: 0.12em; padding: 8px 18px; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--text-secondary); cursor: none; transition: all .3s var(--ease-out); backdrop-filter: blur(12px); }
.filter-pill:hover { border-color: var(--blue-line); color: var(--text-primary); }
.filter-pill.active { background: var(--blue-subtle); border-color: var(--blue-line); color: var(--text-accent); box-shadow: 0 0 16px var(--blue-glow); }

.gallery-masonry { columns: 3; column-gap: 10px; }
@media (max-width: 900px) { .gallery-masonry { columns: 2; } }
@media (max-width: 580px) { .gallery-masonry { columns: 1; } }

.gallery-item { break-inside: avoid; margin-bottom: 10px; position: relative; overflow: hidden; border-radius: 16px; cursor: none; border: 1px solid rgba(255,255,255,0.04); }
.gallery-item img { width: 100%; height: auto; display: block; transform: scale(1.04); transition: transform .8s var(--ease-out), filter .5s; filter: brightness(0.82) saturate(0.8); }
.gallery-item:hover img { transform: scale(1.0); filter: brightness(0.55) saturate(0.65); }
.gallery-item-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(to top, rgba(3,9,18,0.88) 0%, transparent 55%); opacity: 0; transition: opacity .4s var(--ease-out); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-cat { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 4px; }
.gallery-item-title { font-family: var(--f-display); font-size: 17px; font-weight: 400; color: var(--text-primary); }
.gallery-item::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.gallery-item:hover::before { opacity: 1; }

#about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--glass-border); }
.about-img-frame img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: brightness(0.78) saturate(0.75); }
.about-glass-card { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(3,9,18,0.72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.about-glass-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 9px var(--blue-bright); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
.about-glass-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.about-glass-card strong { color: var(--text-primary); font-weight: 400; display: block; font-size: 13px; }
.about-img-wrap::before { content: ''; position: absolute; left: -28px; top: 12%; bottom: 12%; width: 1px; background: linear-gradient(to bottom, transparent, var(--blue-bright), transparent); opacity: 0.35; }

.about-text p:not(.tag-label) { color: var(--text-secondary); font-size: 15px; line-height: 1.9; margin-bottom: 18px; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 44px; }
.about-stat { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 20px 14px; text-align: center; backdrop-filter: blur(16px); transition: all .3s var(--ease-out); }
.about-stat:hover { border-color: var(--blue-line); box-shadow: 0 0 22px var(--blue-glow); transform: translateY(-3px); }
.about-stat-num { font-family: var(--f-display); font-size: 34px; font-weight: 400; color: var(--text-primary); line-height: 1; margin-bottom: 6px; }
.about-stat-lbl { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-info p:not(.tag-label) { color: var(--text-secondary); font-size: 15px; line-height: 1.9; margin: 18px 0 32px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.contact-link { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); text-decoration: none; font-size: 14px; cursor: none; transition: color .3s; }
.contact-link i { color: var(--blue-bright); width: 16px; }
.contact-link:hover { color: var(--text-primary); }
.social-row { display: flex; gap: 10px; }
.social-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 100px; color: var(--text-secondary); font-size: 11px; letter-spacing: 0.1em; text-decoration: none; cursor: none; backdrop-filter: blur(12px); transition: all .3s var(--ease-out); }
.social-pill:hover { border-color: var(--blue-line); color: var(--text-primary); box-shadow: 0 0 18px var(--blue-glow); }

.contact-form-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 10px; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-accent); }
.form-field input, .form-field textarea, .form-field select { background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-primary); font-family: var(--f-body); font-size: 14px; font-weight: 300; padding: 12px 16px; outline: none; transition: border-color .3s, box-shadow .3s; resize: none; width: 100%; cursor: none; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue-line); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field textarea { height: 110px; }
.btn-send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 34px; background: var(--blue); border: 1px solid rgba(59,130,246,0.3); border-radius: 14px; color: #fff; font-family: var(--f-body); font-size: 13px; font-weight: 300; letter-spacing: 0.1em; cursor: none; transition: all .35s var(--ease-out); box-shadow: 0 4px 22px rgba(29,78,216,0.35); align-self: flex-start; }
.btn-send:hover { background: #2563EB; box-shadow: 0 8px 38px rgba(29,78,216,0.55); transform: translateY(-2px); }

footer { padding: 36px 52px; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
footer p { font-size: 12px; color: var(--text-muted); }
footer a { font-size: 12px; color: var(--text-muted); text-decoration: none; cursor: none; transition: color .3s; }
footer a:hover { color: var(--text-accent); }

#lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(2,4,8,0.96); backdrop-filter: blur(40px); display: none; align-items: center; justify-content: center; }
#lightbox.active { display: flex; }
#lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--glass-border); }
.lb-close { position: absolute; top: 26px; right: 38px; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(12px); border-radius: 100px; color: var(--text-secondary); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 18px; cursor: none; transition: all .3s; }
.lb-close:hover { color: var(--text-primary); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); border-radius: 100px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 16px; cursor: none; transition: all .3s; }
.lb-prev:hover, .lb-next:hover { border-color: var(--blue-line); color: var(--text-primary); box-shadow: 0 0 18px var(--blue-glow); }
.lb-prev { left: 26px; } .lb-next { right: 26px; }
.lb-caption { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); text-align: center; background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 100px; padding: 8px 24px; }
.lb-caption p { font-family: var(--f-display); font-size: 15px; color: var(--text-primary); }
.lb-caption span { font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-accent); }

#nav-drawer { position: fixed; inset: 0; z-index: 99; background: rgba(3,9,18,0.96); backdrop-filter: blur(40px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform .5s var(--ease-out); }
#nav-drawer.open { transform: translateX(0); }
#nav-drawer a { font-family: var(--f-display); font-size: 38px; font-weight: 400; color: var(--text-primary); text-decoration: none; transition: color .3s; }
#nav-drawer a:hover { color: var(--text-accent); }

#toast { position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%); background: var(--glass-strong); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 100px; color: var(--text-primary); font-size: 13px; padding: 12px 28px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out); z-index: 2000; white-space: nowrap; }
#toast.show { opacity: 1; }

.reveal { opacity: 0; }

@media (max-width: 1024px) {
  #about { grid-template-columns: 1fr; gap: 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Mniej kart, bliżej krawędzi */
  .hc-3, .hc-4 { display: none; }
  .hero-card { width: clamp(104px, 15vw, 150px); }
  .hc-1 { top: 11%; left: 3%; }
  .hc-2 { top: 13%; right: 3%; }
  .hc-5 { bottom: 8%; left: 5%; }
  .hc-6 { bottom: 10%; right: 5%; }
}
@media (max-width: 768px) {
  section { padding: 90px 24px; }
  #nav { padding: 18px 24px; }
  #nav.scrolled { padding: 12px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  #hero { padding: 100px 0 0; }
  .hero-center { padding: 0 24px; }
  .hero-scroll-hint { display: none; }
  .portfolio-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 560px) {
  /* Karty bliżej treści, w pełni widoczne w rogach */
  .hero-card { width: clamp(96px, 31vw, 132px); }
  .hero-card-tag { font-size: 8px; padding: 4px 8px; left: 8px; bottom: 8px; }
  .hc-1 { top: 11%; left: 4%;  --rot: -6deg; }
  .hc-2 { top: 14%; right: 4%; --rot: 5deg; }
  .hc-5 { bottom: 10%; left: 5%;  --rot: -4deg; }
  .hc-6 { bottom: 13%; right: 5%; --rot: 4deg; }
}
/* Ograniczony ruch: zatrzymaj orbitę kart */
@media (prefers-reduced-motion: reduce) {
  .hero-card-inner { animation: none; }
}

.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 14px; font-weight: 300;
  padding: 12px 40px 12px 16px;
  outline: none;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s;
}
.select-wrap select:focus {
  border-color: var(--blue-line);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.select-wrap select option {
  background: #060e1c;
  color: #F0F4FF;
}
.select-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none;
  transition: transform .3s;
}
.select-wrap select:focus + .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--text-accent);
}
ne;
  transition: transform .3s;
}
.select-wrap select:focus + .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--text-accent);
}
ar(--text-accent);
}
