/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: black !important;
  color: #d2d2d2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================= HEADER ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 2rem;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container img {
  width: 200px;
  height: auto;
  display: block;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #d2d2d2;
  user-select: none;
}

/* NAV DESKTOP */
nav {
  display: flex;
}

nav a {
  font-weight: 600;
  color: white;
  transition: 0.3s ease;
  padding: 1.5rem;
}

nav a:hover {
  color: #d4af37;
  transform: scale(1.1);
}

/* =============== HERO =============== */
.hero-banner {
  width: 100%;
  height: calc(100vh - 60px); /* 60px = wysokość headera */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem; 
}

#color-bends-container {
  position: fixed; /* żeby zawsze w tle */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh; /* pełna wysokość viewport */
  overflow: hidden; /* usuwa suwaki */
  z-index: -1; /* żeby nie zasłaniało treści */
}

#color-bends-container canvas {
  position: absolute;
  top: 0;
  left: 50%;          /* ustawiamy środek */
  transform: translateX(-50%); /* przesunięcie w lewo o połowę szerokości */
  width: 100vw;
  height: 100vh;
  display: block;
}





.hero-content {
  position: relative;
  z-index: 2; /* nad animacją */
  max-width: 800px;
  margin-top: 3rem;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1rem;
  color: #cdcdcd;
  margin-bottom: 1.5rem;
}

/* CTA BUTTONS */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-cta {
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 10px;
  color: #d2d2d2;
  border: 2px solid #e6c692;
  transition: 0.25s;
  text-align: center;
}

.hero-cta:hover {
  background: rgba(202,162,75,0.12);
  box-shadow: 0 0 14px rgba(202,162,75,0.6);
  transform: translateY(-2px);
}

.text-carousel {
  position: absolute;  /* przypięcie do hero-banner */
  bottom: 20px;        /* odstęp od dołu hero */
  left: 0;
  width: 100%;
  overflow: hidden;
  padding: 0 0 20px 0; /* dodatkowy padding w razie potrzeby */
  z-index: 10;
  background: rgba(0,0,0,0.1); /* opcjonalnie półprzezroczyste tło */
}

.carousel-track {
  display: flex;
  width: max-content;
  padding: 1rem;
  gap: 60px;
  animation: scroll 40s linear infinite;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  gap: 10px;
}

.carousel-item img {
  width: 42px;
  height: 42px;
  opacity: 0.85;
  transition: transform 0.3s ease;
}

.carousel-item span {
  font-size: clamp(16px, 3vw, 26px);
  font-weight: 300;
  color: #d2d2d2;
  opacity: 0.8;
}

/* animacja pętli */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ANIMACJA – PRAWDZIWA PĘTLA */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============== MOBILE ================= */
@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 1rem 0 1rem; /* top 2rem, sides 1rem, bottom 0 */
  }

  .hero-content {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    width: 80%;
    margin-top: 1rem;
  }

  nav {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    position: absolute;
    width: 100%;
    top: 60px;
    left: 0;
  }

  nav.active {
    display: flex;
    top: 100%;
  }

  nav a {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .menu-toggle {
    display: block;
  }

  .logo-container img {
    width: 130px;
    object-position: left;
  }

  .text-carousel span {
    font-size: 20px;
  }
}


/* ===================== Sekcja Usług / Features ===================== */
.services {
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 600;
  background: linear-gradient(90deg, #f9d976, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.service-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(210,210,210,0.9);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(212,175,55,0.3);
}

.service-card:hover img {
  transform: scale(1.1);
}

/* ===================== Sekcja Dlaczego my? / Zalety ===================== */
.why-us {
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);
}

.why-us h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 600;
}

.why-us-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
  padding: 1.5rem;
  border-radius: 12px;
}

.why-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 0.5rem;
}

.why-card h4 {
  font-size: 1.2rem;
  font-weight: 500;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(210,210,210,0.85);
}

.why-card:hover {
  transform: translateY(-8px);
}

/* ===================== Portfolio / Case Studies ===================== */
.portfolio {
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
}

.portfolio h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  font-size: 0.9rem;
  line-height: 1.3;
}

.portfolio-cta {
  margin-top: 2rem;
}

.portfolio-cta .btn {
  background: linear-gradient(90deg, #f9d976, #d4af37);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.3);
}

/* ===================== Opinie / Testimonials ===================== */
.testimonials {
  padding: 6rem 2rem;
  color: #fff;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.testimonial {
  flex: 0 0 300px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(212,175,55,0.3);
}

.testimonial p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #d2d2d2;
}

.testimonial h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}

/* ===================== Kim jesteśmy / About ===================== */
.about {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.about-text {
  flex: 1 1 400px;
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(210,210,210,0.95);
}

.about-image img {
  width: 400px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* ===================== CTA / Kontakt ===================== */
.cta-contact {
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
  background: rgba(212,175,55,0.05);
  border-radius: 12px;
}

.cta-contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #d2d2d2;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(90deg, #f9d976, #d4af37);
  color: #000;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(212,175,55,0.4);
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .services-container,
  .why-us-container,
  .portfolio-grid,
  .about-container {
    grid-template-columns: 1fr;
  }

  .testimonial-slider {
    gap: 1rem;
  }

  .testimonial {
    flex: 0 0 80%;
  }

  .about-text {
    text-align: center;
  }
}


/* ================= FOOTER ================= */
footer {
  color: #ccc;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 2px solid #d4af37;
}

footer a {
  color: #d4af37;
  font-weight: 600;
}

footer p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
  }

  .service {
    max-width: 90%;
  }
}

/* USUNIĘCIE NIEBIESKICH PODŚWIETLEŃ NA MOBILE */
a, button, .menu-toggle, img {
  -webkit-tap-highlight-color: transparent;
  outline: none !important;
}

/* USUNIĘCIE OBRAMOWANIA FOCUS */
a:focus,
button:focus,
.menu-toggle:focus,
img:focus {
  outline: none !important;
  box-shadow: none !important;
}

a, button {
  -webkit-touch-callout: none;
  user-select: none;
}