/* =========================================================
   InspireWeb — pełny plik CSS (skonsolidowany)
   Zawiera: reset, preloader, navbar, hero, portfolio,
   offer-section, about, contact, scroll-top, process (timeline)
   ========================================================= */

/* ===== RESET / BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(180deg,#fafafa 0%,#f0f0f3 100%);
  color: #1a1a1a;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0;
  background: linear-gradient(120deg, rgba(129,34,169,0.85), rgba(229,46,113,0.85), rgba(155,93,229,0.85));
  background-size: 200% 200%;
  animation: preloaderGradient 3s ease infinite;
  display:flex;align-items:center;justify-content:center;
  z-index:2200; opacity:0.98; transition:opacity .8s ease;
}

@keyframes preloaderGradient { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }
.preloader h1 { color:#fff; font-size:2rem; font-weight:700; letter-spacing:1px; opacity:0; transform:translateY(10px); animation: fadeInPreloader 1.2s ease forwards .4s;}
@keyframes fadeInPreloader { to { opacity:1; transform:translateY(0); } }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top:0; left:0; right:0;
  z-index:1300;
  padding:20px 8%;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all .3s ease;
}
.navbar.scrolled { background: rgba(255,255,255,0.95); box-shadow:0 2px 10px rgba(0,0,0,0.05); padding:14px 8%; }
.nav-container { max-width:1400px; width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.logo { font-weight:700; font-size:1.6rem; letter-spacing:-0.5px; color:#1a1a1a; }
.logo span { background: linear-gradient(90deg,#8122a9,#e52e71,#9b5de5); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

/* NAV LINKS */
.nav-links { display:flex; gap:30px; list-style:none; align-items:center; z-index:1200; }
.nav-links a { text-decoration:none; color:#1a1a1a; font-weight:500; position:relative; transition:color .25s ease; padding:6px 0; display:inline-block; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-6px; width:100%; height:2px; background: linear-gradient(90deg,#8122a9,#e52e71,#9b5de5); transform:scaleX(0); transform-origin:right; transition:transform .28s ease; }
.nav-links a:hover::after, .nav-links a.active::after { transform:scaleX(1); transform-origin:left; }
.nav-links a:hover { color:#8122a9; }

/* burger */
.burger { display:none; width:28px; height:20px; flex-direction:column; justify-content:space-between; cursor:pointer; z-index:1350; }
.burger div { height:3px; border-radius:3px; background:#1a1a1a; transition:all .3s ease; }
.burger.active div:nth-child(1){ transform:rotate(45deg) translateY(7px); }
.burger.active div:nth-child(2){ opacity:0; transform:translateX(-10px); }
.burger.active div:nth-child(3){ transform:rotate(-45deg) translateY(-7px); }

/* mobile nav */
@media (max-width:900px) {
  .burger { display:flex; }
  .nav-links {
    position: fixed; justify-content: flex-start !important; top:0; right:-100%; height:100vh; width:72%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    flex-direction: column; justify-content:center; align-items:center; gap:28px;
    transition: right .35s cubic-bezier(.2,.9,.2,1);
    padding-top:100px;
  }
  .nav-links.open { right:0; }
  .nav-links a { font-size:1.15rem; }
}

/* overlay under menu */
.menu-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.32); backdrop-filter: blur(3px);
  opacity:0; pointer-events:none; transition:opacity .35s ease; z-index:1150;
}
.menu-overlay.visible { opacity:1; pointer-events:auto; }

/* ===== HERO ===== */
.hero { height:100vh; display:flex; align-items:center; justify-content:center; text-align:center; position:relative; overflow:hidden; box-shadow: inset 0 0 34px rgba(0,0,0,.16); padding:0 20px; }
.hero-bg { position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, #dfdfdf,#ffffff,#a9a9a9); background-size:200% 200%; animation:bgMove 10s ease-in-out infinite alternate; z-index:-2; }
@keyframes bgMove { 0%{background-position:0% 0%} 100%{background-position:100% 100%} }
.hero h1 { font-size:clamp(2.2rem,5vw,4.2rem); line-height:1.15; margin-bottom:18px; font-weight:700; text-shadow:0 0 11px rgba(0,0,0,0.08); }
.gradient-text { background: linear-gradient(90deg,#8122a9,#e52e71,#9b5de5); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-size:300% 300%; animation:gradientMove 6s ease infinite; filter: drop-shadow(0 2px 6px rgba(149,76,233,0.12)); }
@keyframes gradientMove { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }
.hero p { color:#555; font-size:1.05rem; margin-bottom:28px; max-width:760px; }

/* CTA style */
.cta, .magnetic-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-size: 16px;
  text-decoration: none;
  font-family: 'Manrope';
  background: linear-gradient(90deg, #1a1a1a, #1a1a1a);
  color: #fff;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform .28s ease, box-shadow .28s ease;
  z-index: 3;
}
.cta { background:#1a1a1a; }
.cta:hover{ background:#333; }

/* gradient button style */
.magnetic-btn {
  background: linear-gradient(90deg,#8122a9,#e52e71,#9b5de5);
  background-size:200% 200%;
  animation: btnGradient 6s ease infinite;
  margin-top: 10px;
}
@keyframes btnGradient { 0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%} }

/* light-sweep (shine) */
.magnetic-btn::after, .cta::after {
  content: ""; position: absolute; top: -50%; left: -75%; width: 40%; height: 200%;
  transform: rotate(25deg) translateX(-120%);
  background: linear-gradient(90deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.0) 100%);
  filter: blur(8px);
  opacity: 0.6;
  pointer-events: none;
}
.magnetic-btn::after { animation: sweep 6s ease-in-out infinite 1s; }
.cta::after { animation: sweep 8s ease-in-out infinite 2s; }
@keyframes sweep { 0% { transform: rotate(25deg) translateX(-120%); opacity:0 } 10%{opacity:.6} 50%{ transform: rotate(25deg) translateX(120%); opacity:.35 } 90%{opacity:0} 100%{ transform: rotate(25deg) translateX(120%); opacity:0 } }

/* ===== PORTFOLIO ===== */
.portfolio { padding:120px 10%; background:#fff; }
.section-title { text-align:center; font-size:2.4rem; font-weight:700; margin-bottom:16px; }
.portfolio-grid { display:grid; gap:30px; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); }
.portfolio-grid .item{ position:relative; overflow:hidden; border-radius:20px; box-shadow:0 6px 20px rgba(0,0,0,0.05); }
.portfolio-grid img{ width:100%; display:block; transition:transform .5s ease; }
.portfolio-grid .overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:600; font-size:1.2rem; background:rgba(0,0,0,.45); opacity:0; transition:opacity .28s ease; }
.portfolio-grid .item:hover img{ transform:scale(1.08); } .portfolio-grid .item:hover .overlay{ opacity:1; }

/* ===== ABOUT ===== */
.about { position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center; padding:80px 10%; text-align:center; color:#1a1a1a; overflow:hidden; box-shadow: inset 0 0 34px rgba(0, 0, 0, .16); flex-direction: column; }
.about-bg { position:absolute; inset:0; background: radial-gradient(circle at 30% 40%, #e8e8e8,#fafafa,#f0f0f3); background-size:200% 200%; animation:bgMoveAlt 12s ease-in-out infinite alternate; z-index:-2; }
@keyframes bgMoveAlt { 0%{background-position:0% 0%} 100%{background-position:100% 100%} }
.glass-box { background: rgba(255,255,255,0.58); backdrop-filter: blur(14px); border-radius:24px; padding:60px 40px; box-shadow: 0 12px 40px rgba(0,0,0,0.08); max-width:980px; margin:0 auto; animation: floatUp .9s ease both; }
@keyframes floatUp { from{ transform:translateY(30px); opacity:0 } to{ transform:translateY(0); opacity:1 } }
.about h2 { font-size:2.6rem; margin-bottom:14px; font-weight:700; background:linear-gradient(90deg,#8122a9,#e52e71,#9b5de5); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.about p { font-size:1.15rem; color:#333; line-height:1.7; max-width:760px; margin:0 auto; }

/* ===== CONTACT ===== */
.contact { padding:120px 10%; background:#fff; text-align:center; }
.contact h2 { font-size:2.4rem; margin-bottom:28px; }
.contact form { max-width:640px; margin:0 auto; display:flex; flex-direction:column; gap:18px; }
.contact input, .contact textarea { width:100%; padding:14px 18px; border-radius:12px; border:1px solid #ddd; font-family:inherit; font-size:1rem; }
.contact input:focus, .contact textarea:focus { outline:none; box-shadow:0 0 0 4px rgba(129,34,169,0.06); border-color:#b49bd8; }

/* ===== SCROLL TOP BUTTON ===== */
.scroll-top {
  position:fixed; bottom:28px; right:28px;
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.28); backdrop-filter: blur(8px);
  border: 1px solid rgba(129,34,169,0.18);
  color: #8122a9a6; font-size:22px; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,0.06);
  opacity:0; pointer-events:none; transition: all .35s ease; z-index:1400;
  font-family: 'Manrope';
}
.scroll-top.visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.scroll-top:hover { transform: translateY(-6px); background: rgba(255,255,255,0.44); }

/* ===== OFFER SECTION (menu oferta) ===== */
.offer-section {
  background: #fff;
  padding: 120px 10%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.offer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
}

.offer-left {
  flex: 1;
  min-width: 280px;
}

.offer-left h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.offer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offer-menu li {
  background: #fff;
  border: 2px solid #d5d5e1;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #111;
}

.offer-menu li.active,
.offer-menu li:hover {
  background: linear-gradient(90deg, #8122a9, #e52e71);
  color: #fff;
  transform: translateX(10px);
  border-color: transparent;
  background-size: 105%;
  background-position-x: -3px;
}

.offer-content {
  flex: 2;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

/* SLIDE */
.offer-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: none;
  z-index: 1;
  background: transparent;
}

.offer-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 3;
}

.offer-slide h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.offer-slide p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  max-width: 600px;
}

.offer-slide .cta {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.4s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.offer-slide .cta:hover {
  background: #333;
}

/* === MOBILE for offer === */
@media (max-width: 900px) {
  .offer-container {
    flex-direction: column;
  }

  .offer-content {
    min-height: 300px;
  }

  .offer-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .offer-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    position: relative;
  }
  
  .offer-left h2 {
  text-align: center;
  }
  
  .offer-container {
    align-items: center;
  }
}

/* ===== PROCES WSPÓŁPRACY — subtelny poziomy timeline (final) ===== */
.process {
  position: relative;
  padding: 140px 8%;
  background: radial-gradient(circle at 30% 10%, #ffffff 0%, #f7f7f9 100%);
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(129,34,169,0.06), rgba(229,46,113,0.06), rgba(155,93,229,0.06));
  filter: blur(60px);
  opacity: 0.28;
  pointer-events: none;
}

.process .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.process .section-title {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.process .section-subtitle {
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* TIMELINE wrapper (subtle) */
.timeline-wrapper {
  position: relative;
  width: 100%;
  height: 72px;
  margin-bottom: 36px;
  z-index: 2;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: visible;
}

/* progress bar that "wypełnia się" przy scrollu */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8122a9, #e52e71, #9b5de5);
  background-size: 200% 100%;
  border-radius: 2px;
  box-shadow: 0 4px 18px rgba(129,34,169,0.06);
  transition: width 0.2s linear;
  will-change: width, transform;
}

/* dots (muted -> active) */
.timeline-dots {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}

.timeline-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12); /* muted gray */
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 0 0 rgba(0,0,0,0.00);
}

.timeline-dots .dot.active {
  background: linear-gradient(90deg, #8122a9, #e52e71, #9b5de5);
  transform: scale(1.15);
  box-shadow: 0 6px 18px rgba(129,34,169,0.07);
}

/* process grid / cards (glass style) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  z-index: 3;
  position: relative;
}

.process-card {
  position: relative;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 22px;
  padding: 40px 26px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: transform 0.4s ease, box-shadow 0.35s ease;
}

.process-card:hover {
  transform: translateY(-8px) scale(1);
  box-shadow: 0 14px 44px rgba(129,34,169,0.10);
}

.step-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(90deg, #8122a9, #e52e71, #9b5de5);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.process-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-card p {
  font-size: 1.02rem;
  color: #555;
  line-height: 1.6;
}

/* responsive tweaks */
@media (max-width:900px) {
  .nav-container { padding: 0 8px; }
  .hero h1 { font-size: 2.2rem; }
  .portfolio { padding:80px 6%; }
  .contact { padding:80px 6%; }
  .glass-box { padding:32px 20px; border-radius:18px; }

  /* timeline -> pionowo na mobile */
  .timeline-wrapper {
    height: 360px;
    margin-bottom: 24px;
  }

  .timeline-line {
    left: 50%;
    top: 4%;
    width: 2px;
    height: 82%;
    transform: translateX(-50%);
  }

  .timeline-progress {
    width: 100%;
    height: 0%;
    top: auto;
    bottom: 0;
    left: 0;
  }

  .timeline-dots {
    top: 6%;
    left: 50%;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 82%;
    transform: translateX(-50%);
    gap: 36px;
  }

  .timeline-dots .dot {
    width: 12px;
    height: 12px;
  }

  .process {
    padding: 100px 6%;
  }

  .process .section-title { font-size: 2rem; }
  .process-card { padding: 28px 18px; }
  .process-grid { margin-top: 20px; }
}

/* small screens */
@media (max-width:560px) {
  .step-number { font-size: 2rem; }
  .section-subtitle { font-size: 0.98rem; }
  .timeline-wrapper { height: 280px; }
}
