/*
 * Daniel Włodarczyk Portfolio — style.css
 * Wrzuć do: wp-theme/assets/style.css
 */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:#0C0C0C;color:#F0EDE8;
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}

/* NAV */
nav{
  position:fixed;top:0;left:0;right:0;z-index:300;
  display:flex;justify-content:space-between;align-items:center;
  padding:1.5rem 3rem;background:#0C0C0C;
}
.nav-logo{font-size:14px;font-weight:400;letter-spacing:0.05em}
.nav-links{display:flex;gap:2.5rem;list-style:none}
.nav-links a{font-size:14px;opacity:0.5;cursor:pointer;transition:opacity .2s}
.nav-links a:hover{opacity:1}

/* HERO */
.hero{min-height:100vh;padding:6rem 3rem 5rem;display:flex;flex-direction:column;justify-content:flex-end}
.hero-title{
  font-size:clamp(2rem,3.4vw,3rem);font-weight:300;line-height:1.15;
  letter-spacing:-0.025em;max-width:820px;margin-bottom:2rem;
  opacity:0;transform:translateY(32px);
  animation:fadeUp .9s cubic-bezier(.16,1,.3,1) .1s forwards;
}
.hero-desc{
  font-size:20px;font-weight:300;color:rgba(240,237,232,0.8);
  line-height:1.75;max-width:480px;margin-bottom:3.5rem;
  opacity:0;transform:translateY(24px);
  animation:fadeUp .9s cubic-bezier(.16,1,.3,1) .3s forwards;
}
.scroll-btn{
  display:inline-flex;flex-direction:column;gap:0.5rem;
  background:none;border:none;color:inherit;padding:0;cursor:pointer;align-self:flex-start;
  opacity:0;animation:fadeUp .9s cubic-bezier(.16,1,.3,1) .5s forwards;
}
.scroll-lbl{font-size:11px;letter-spacing:0.15em;text-transform:uppercase;color:#555}
.scroll-line{width:1px;height:48px;background:#333;display:block;position:relative;overflow:hidden}
.scroll-line::after{content:'';position:absolute;top:-100%;left:0;width:1px;height:100%;background:#F0EDE8;animation:ld 2s ease-in-out infinite}
@keyframes fadeUp{to{opacity:1;transform:translateY(0)}}
@keyframes ld{0%{top:-100%}100%{top:200%}}

/* PORTFOLIO */
#prace{padding:7rem 3rem 0}
.sec-label{font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:#555;margin-bottom:0.5rem}
.sec-heading{font-size:clamp(2rem,4vw,3.2rem);font-weight:300;letter-spacing:-0.025em;line-height:1.1;margin-bottom:2.5rem}

.filters{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:3rem}
.filter-btn{
  font-family:'Inter',system-ui,sans-serif;font-size:15px;font-weight:400;
  padding:0.5rem 1.3rem;border-radius:100px;border:1px solid #333;
  background:transparent;color:rgba(240,237,232,0.55);cursor:pointer;transition:all .2s;
}
.filter-btn:hover{border-color:#555;color:#F0EDE8}
.filter-btn.active{background:#F0EDE8;color:#0C0C0C;border-color:#F0EDE8;font-weight:500}

/* STACK */
.stack-card{
  position:sticky;width:64%;max-width:860px;margin:0 auto;
  border-radius:8px;overflow:hidden;background:#111;display:block;cursor:pointer;
}
.stack-card:hover .card-img img{transform:scale(1.04)}
.stack-card.hidden{display:none!important}
.card-img{position:relative;overflow:hidden;aspect-ratio:16/9}
.card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease}
.card-img::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,0.82) 0%,rgba(0,0,0,0.2) 50%,transparent 75%);
  z-index:1;pointer-events:none;
}
.card-meta{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:1.4rem 1.6rem;display:flex;justify-content:space-between;align-items:flex-end}
.card-title{font-size:16px;font-weight:400;color:#fff;letter-spacing:-0.01em}
.card-tag{
  font-size:11px;letter-spacing:0.1em;text-transform:uppercase;
  background:rgba(255,255,255,0.12);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.2);color:#fff;padding:0.35rem 0.85rem;border-radius:100px;white-space:nowrap;
}

/* WPIS */
main{max-width:960px;margin:0 auto;padding:8rem 3rem 0}
.back-link{
  display:inline-flex;align-items:center;gap:0.5rem;font-size:13px;
  letter-spacing:0.06em;text-transform:uppercase;color:#555;transition:color .2s;
  margin-bottom:2.5rem;opacity:0;transform:translateY(16px);
  animation:fadeUp .7s cubic-bezier(.16,1,.3,1) .05s forwards;
}
.back-link:hover{color:#F0EDE8}
.back-link::before{content:'←';font-size:14px}
.proj-category{font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:#555;margin-bottom:0.6rem;opacity:0;transform:translateY(16px);animation:fadeUp .7s cubic-bezier(.16,1,.3,1) .1s forwards}
.proj-title{font-size:clamp(2rem,4vw,3.4rem);font-weight:300;letter-spacing:-0.03em;line-height:1.08;margin-bottom:1.4rem;opacity:0;transform:translateY(24px);animation:fadeUp .9s cubic-bezier(.16,1,.3,1) .18s forwards}
.proj-desc{font-size:20px;font-weight:300;color:rgba(240,237,232,0.8);line-height:1.75;max-width:600px;margin-bottom:3.5rem;opacity:0;transform:translateY(20px);animation:fadeUp .9s cubic-bezier(.16,1,.3,1) .28s forwards}

.proj-content{padding-bottom:6rem}
.proj-content p{font-size:20px;font-weight:300;color:rgba(240,237,232,0.8);line-height:1.75;max-width:620px;margin:0 auto 1.2rem}
.proj-content h2,.proj-content h3{font-size:16px;font-weight:400;color:#F0EDE8;letter-spacing:-0.01em;max-width:620px;margin:2.5rem auto 0.75rem}
.proj-content figure.wp-block-image{width:100%;margin:0 0 1.5rem;border-radius:4px;overflow:hidden}
.proj-content figure.wp-block-image img{width:100%;display:block;border-radius:4px}
.proj-content figure.wp-block-image figcaption{font-size:12px;color:#555;text-align:center;padding:0.5rem 0}
.proj-content .wp-block-columns{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}
.proj-content .wp-block-column figure{margin:0}
.proj-content .wp-block-column img{width:100%;height:100%;object-fit:cover;border-radius:4px}

/* REVEAL */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1)}
.reveal.visible{opacity:1;transform:translateY(0)}

/* REVEAL dla bloków treści wpisu */
.proj-content figure.wp-block-image,
.proj-content .wp-block-columns,
.proj-content p,
.proj-content h2,
.proj-content h3{
  opacity:0;transform:translateY(30px);
  transition:opacity .75s cubic-bezier(.16,1,.3,1),transform .75s cubic-bezier(.16,1,.3,1);
}
.proj-content figure.wp-block-image.visible,
.proj-content .wp-block-columns.visible,
.proj-content p.visible,
.proj-content h2.visible,
.proj-content h3.visible{opacity:1;transform:translateY(0)}

/* STOPKA */
#kontakt{padding:5rem 3rem 3rem;border-top:1px solid #1E1E1E;text-align:center;margin-top:120px}
.contact-lbl{font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:#555;margin-bottom:1rem}
.contact-email{font-size:clamp(1.8rem,4vw,3.2rem);font-weight:300;letter-spacing:-0.025em;display:inline-block;transition:opacity .2s}
.contact-email:hover{opacity:0.5}
.footer-bottom{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap;margin-top:4rem;padding-top:1.5rem;border-top:1px solid #1E1E1E}
.footer-bottom span,.footer-bottom a{font-size:12px;color:#555;transition:color .2s}
.footer-bottom a:hover{color:#F0EDE8}

/* PRIVACY POLICY */
.pp-content{max-width:680px;margin:0 auto}
.pp-content h2{font-size:15px;font-weight:500;color:#F0EDE8;margin-top:2.5rem;margin-bottom:0.75rem}
.pp-content p{font-size:20px;font-weight:300;color:rgba(240,237,232,0.8);line-height:1.75;margin-bottom:1rem}
.pp-content a{color:rgba(240,237,232,0.8);border-bottom:1px solid #333;padding-bottom:1px;transition:border-color .2s}
.pp-content a:hover{border-color:#F0EDE8}
.pp-divider{width:100%;height:1px;background:#1E1E1E;margin:2.5rem 0}

/* RESPONSIVE */
@media(max-width:900px){
  nav{padding:1.3rem 1.5rem}
  .hero{padding:5rem 1.5rem 4rem}
  #prace{padding:5rem 1.5rem 0}
  .stack-card{width:94%}
  main{padding:6rem 1.5rem 0}
  #kontakt{padding:4rem 1.5rem 2.5rem}
  .proj-content .wp-block-columns{grid-template-columns:1fr}
}
@media(max-width:600px){
  .stack-card{width:100%;border-radius:6px}
  .filter-btn{font-size:13px;padding:0.4rem 1rem}
}
