@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html {
  scroll-behavior: auto;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a {
  color: inherit;
}

header {
  width: 100%;
  height: 80px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff20;
}

.logo-name {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

#links {
  display: flex;
  align-items: center;
}

#links a {
  margin: 0 18px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

#links a:hover {
  color: #888;
}

.header-contact {
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 20px;
  font-weight: 700;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.header-contact:hover {
  background: #000;
  color: #fff;
  transform: scale(1.04);
}

#hero {
  min-height: 100vh;
  width: 100%;
  padding: 150px 20px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.hero-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
}

#hero h1 {
  max-width: 1000px;
  margin: 20px 0;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -3px;
}

#hero p {
  max-width: 900px;
  margin: 10px auto;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.4;
  font-weight: 300;
  color: #cfcfcf;
}

#przyciski {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  min-width: 210px;
  padding: 17px 25px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.primary-button {
  background: #fff;
  color: #000;
}

.secondary-button {
  background: transparent;
  color: #fff;
  border: 1px solid #ffffff40;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-4px);
}

.primary-button:hover {
  background: #ddd;
}

.secondary-button:hover {
  background: #fff;
  color: #000;
}

#info {
  margin-top: 70px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
}

#info p {
  margin: 0;
  font-size: 14px;
}

#info span {
  animation: float 1s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

#omnie {
  width: 100%;
  min-height: 650px;
  padding: 120px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

#left,
#right {
  width: 50%;
}

#left span,
#projekty > span,
#technologie > span,
#cennik > span,
#textleft > span {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #999;
}

#left h2,
#text,
#technologie h2,
#cennik h2,
#textleft h2 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -2px;
  margin-top: 15px;
}

#right p {
  max-width: 700px;
  margin: 0 0 25px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 300;
  color: #ccc;
}

#projekty {
  width: 100%;
  min-height: 700px;
  padding: 120px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#text {
  text-align: center;
  margin-bottom: 50px;
}

#contener {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.projekt {
  width: min(430px, 100%);
  min-height: 570px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid #ffffff25;
  border-radius: 30px;
  overflow: hidden;
  transition:
    transform 0.5s ease,
    border-color 0.5s ease;
}

.projekt:hover {
  transform: translateY(-8px);
  border-color: #ffffff60;
}

.projekt img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 22px;
}

.projekt-content {
  padding: 25px 15px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projekt-content > span {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #888;
}

.projekt h3 {
  margin: 10px 0;
  font-size: 32px;
  font-weight: 800;
}

.projekt p {
  color: #bbb;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
}

.project-button {
  margin-top: auto;
  padding: 13px;
  border-radius: 15px;
  background: #fff;
  color: #000;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.project-button:hover {
  background: #ddd;
  transform: translateY(-2px);
}

#technologie {
  width: 100%;
  padding: 120px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#technologie h2 {
  text-align: center;
  margin-bottom: 45px;
}

#items {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.item {
  width: 300px;
  min-height: 80px;
  padding: 12px;
  display: flex;
  align-items: center;
  border: 1px solid #ffffff25;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.item:hover {
  transform: translateY(-5px);
}

.logo {
  width: 54px;
  height: 54px;
  margin-right: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 18px;
}

.logo svg {
  stroke: #000;
}

.item p {
  font-size: 25px;
  font-weight: 600;
}

#cennik {
  width: 100%;
  padding: 120px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#cennik h2 {
  text-align: center;
  margin-bottom: 50px;
}

#ceny {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
}

.pakiet {
  width: min(390px, 100%);
  min-height: 650px;
  padding: 35px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid #ffffff25;
  border-radius: 25px;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}

.pakiet:hover {
  transform: translateY(-7px);
  border-color: #ffffff60;
}


.pakiet > span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #999;
}

.pakiet h3 {
  margin: 12px 0 20px;
  font-size: 42px;
  font-weight: 900;
}

.pakiet p {
  color: #bbb;
  font-size: 17px;
  line-height: 1.5;
}

.pakiet ul {
  margin: 25px 0;
  padding-left: 20px;
}

.pakiet li {
  margin: 10px 0;
  color: #ddd;
  font-size: 16px;
}

.pakiet > a {
  width: 100%;
  margin-top: auto;
  padding: 14px;
  border-radius: 15px;
  background: #fff;
  color: #000;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease;
}

.pakiet > a:hover {
  background: #ddd;
}

#kontakt {
  width: 100%;
  padding: 150px 8%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

#textleft {
  max-width: 650px;
}

#textleft h2 {
  margin-bottom: 25px;
}

#textleft p {
  color: #bbb;
  font-size: 22px;
  line-height: 1.5;
}

#email {
  min-width: 390px;
  padding: 25px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ffffff25;
  border-radius: 20px;
  text-decoration: none;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}

#email:hover {
  transform: translateY(-5px);
  border-color: #ffffff60;
}

#mail {
  width: 55px;
  height: 55px;
  margin-right: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 18px;
}

#mail svg {
  stroke: #000;
}

#emailinfo span {
  font-size: 14px;
  color: #888;
}

#emailinfo p {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 700;
}

.icon {
  position: absolute;
  top: 15px;
  right: 15px;
}

#menu-btn {
  display: none;
  width: 45px;
  height: 45px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1001;
}

#menu-btn span {
  width: 25px;
  height: 2px;
  display: block;
  background: #fff;
  border-radius: 10px;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}

#sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 85vw);
  height: 100vh;
  background: #000;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar.active {
  transform: translateX(0);
}

#sidebar-links {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#sidebar-links a {
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  font-weight: 500;
  padding: 8px 0;
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    color 0.3s ease;
}

#sidebar.active #sidebar-links a {
  opacity: 1;
  transform: translateX(0);
}

#sidebar.active #sidebar-links a:nth-child(1) {
  transition-delay: 0.1s;
}

#sidebar.active #sidebar-links a:nth-child(2) {
  transition-delay: 0.15s;
}

#sidebar.active #sidebar-links a:nth-child(3) {
  transition-delay: 0.2s;
}

#sidebar.active #sidebar-links a:nth-child(4) {
  transition-delay: 0.25s;
}

#sidebar.active #sidebar-links a:nth-child(5) {
  transition-delay: 0.3s;
}

#sidebar.active #sidebar-links a:nth-child(6) {
  transition-delay: 0.35s;
}

#sidebar-links a:hover {
  color: #888;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  backdrop-filter: blur(4px);
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

#menu-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-btn.active span:nth-child(2) {
  opacity: 0;
}

#menu-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#hero > .hero-label,
#hero > h1,
#hero > p,
#przyciski,
#info {
  opacity: 0;
  transform: translateY(35px);
  filter: blur(8px);
}

#hero > .hero-label {
  animation: heroIn 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#hero > h1 {
  animation: heroIn 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#hero > p {
  animation: heroIn 1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#przyciski {
  animation: heroIn 0.9s 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#info {
  animation: heroIn 0.9s 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.scroll-animation {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(8px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translate(0);
  filter: blur(0);
}

#omnie #left.scroll-animation {
  transform: translateX(-60px);
}

#omnie #right.scroll-animation {
  transform: translateX(60px);
}

#omnie #left.scroll-animation.visible,
#omnie #right.scroll-animation.visible {
  transform: translateX(0);
}

#kontakt #textleft.scroll-animation {
  transform: translateX(-50px);
}

#kontakt #email.scroll-animation {
  transform: translateX(50px);
}

#kontakt #textleft.scroll-animation.visible,
#kontakt #email.scroll-animation.visible {
  transform: translateX(0);
}

@media (max-width: 1000px) {
  #links a {
    margin: 0 8px;
  }

  #omnie {
    gap: 40px;
  }

  #left,
  #right {
    width: 100%;
  }
}

@media (max-width: 800px) {
  header {
    height: 75px;
  }

  .logo-name {
    font-size: 20px;
  }

  #links,
  .header-contact {
    display: none;
  }

  #menu-btn {
    display: flex;
  }

  #hero {
    padding-top: 120px;
  }

  #hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  #hero p {
    font-size: 21px;
  }

  #przyciski {
    width: 100%;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: min(330px, 100%);
  }

  #info {
    margin-top: 50px;
  }

  #omnie {
    padding: 100px 25px;
    gap: 40px;
  }

  #left h2 {
    text-align: center;
  }

  #left span {
    display: block;
    text-align: center;
  }

  #right p {
    font-size: 21px;
  }

  #projekty,
  #technologie,
  #cennik {
    padding: 100px 20px;
  }

  #text,
  #technologie h2,
  #cennik h2 {
    font-size: 40px;
  }

  .projekt {
    min-height: 530px;
  }

  .pakiet {
    min-height: auto;
  }

  #kontakt {
    padding: 100px 25px;
    gap: 40px;
  }

  #textleft h2 {
    font-size: 42px;
  }

  #email {
    width: 100%;
    min-width: 0;
  }

  #emailinfo p {
    font-size: 14px;
    word-break: break-word;
  }
}

@media (max-width: 500px) {
  .logo-name {
    font-size: 18px;
  }

  #hero h1 {
    font-size: 40px;
  }

  #hero p {
    font-size: 19px;
  }

  #text,
  #technologie h2,
  #cennik h2 {
    font-size: 34px;
  }

  .projekt h3 {
    font-size: 28px;
  }

  .projekt p {
    font-size: 17px;
  }

  .pakiet {
    padding: 25px;
  }

  .pakiet h3 {
    font-size: 36px;
  }

  #email {
    padding: 18px;
  }

  #mail {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animation,
  #hero > .hero-label,
  #hero > h1,
  #hero > p,
  #przyciski,
  #info {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}