@import url("reset.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.4;
  padding-left: 100px;
  padding-right: 100px;
  font-size: clamp(1em, 1.5vw + 0.5em, 1.2em);
  overflow-x: hidden; /* blokada przewijania poziomego */
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100px;
  background: #ef4a6e;
  z-index: 0;
}

body::before { left: 0; }
body::after { right: 0; }

header {
  background: #ef4a6e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5em 2em;
}

header .logo {
  font-family: 'Finlandica', sans-serif;
  font-weight: 500;
  font-size: clamp(3em, 8vw, 6em);
  color: #000;
  position: relative;
  top: 0.75em;
  left: 50%;
  transform: translateX(-20%);
}

header nav {
  position: absolute;
  top: 1em;
  right: 2em;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 2em;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #000;
}

.hamburger {
  display: none;
  background: #000;
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 0.5em 0.7em;
  cursor: pointer;
  position: absolute;
  top: 0.5em;
  right: 1em;
  z-index: 10;
}

section {
  padding: 5em 2em;
  min-height: 90vh;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 3em;
}

.hero-text {
  flex: 1 1 300px;
  padding-left: 3em;
}

.hero h1 {
  font-size: clamp(1.5em, 4vw, 2em);
  margin-bottom: 0.5em;
}

.hero p {
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.75em 1.5em;
  text-decoration: none;
  font-size: clamp(1em, 1.2vw + 0.5em, 1.2em);
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
}

.hero-image {
  flex: 1 1 300px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.about {
  text-align: center;
}

.about h2 {
  margin-bottom: 4em;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2em;
}

.feature {
  flex: 1 1 200px;
  margin: 1em;
}

.feature img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0.5em;
  transition: transform 0.3s ease;
}

.feature img:hover {
  transform: scale(1.1);
}

.gallery {
  text-align: center;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3em;
  margin-top: 1em;
}

.gallery-grid img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 3em;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

footer {
  background: #ef4a6e;
  color: #fff;
  padding: 2em 1em;
  text-align: center;
  font-size: 1em;
}

.newsletter {
  margin-bottom: 1em;
}

.newsletter p {
  margin-bottom: 0.5em;
}

.newsletter form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
}

.newsletter input {
  padding: 0.5em;
  font-size: 1em;
  width: 200px;
}

.newsletter button {
  padding: 0.5em 1em;
  font-size: 1em;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.newsletter button:hover {
  background: #fff;
  color: #000;
}

.geometry {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.geo-circle,
.geo-triangle,
.geo-square {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.geo-circle {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 0;
  height: 25%;
  border-left: 50px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 80px solid #007bc0;
  animation: spin-slow 20s linear infinite;
}

.geo-triangle {
  position: absolute;
  top: 60%;
  left: 30%;
  width: 100px;
  height: 100px;
  border-left: 60px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 80px solid #f60;
  animation: spin-slow 30s linear infinite reverse;
}

.geo-square {
  position: absolute;
  top: 40%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: #fdd835;
  animation: spin-slow 25s linear infinite;
  transition: transform 0.3s ease;
}

.geo-square:hover {
  animation: spin-fast 1s linear infinite;
}

@keyframes spin-fast {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.geo-circle:hover,
.geo-triangle:hover,
.geo-square:hover {
  transform: scale(1.3) rotate(15deg);
  opacity: 0.8;
}

@media (max-width: 768px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }

  body::before,
  body::after {
    display: none;
  }

  header .logo {
    font-size: 2em;
    top: 0.2em;
    transform: translateX(-50%);
  }

  .hamburger {
    display: block;
  }

  header nav {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1em;
  }

  header nav.active {
    display: flex;
  }

  header nav ul {
    flex-direction: column;
    gap: 1em;
  }

  section {
    padding: 2em 1em;
    min-height: auto;
  }

  .hero,
  .features,
  .gallery-grid {
    flex-direction: column;
    align-items: center;
  }

  .hero-text {
    padding-left: 0;
    text-align: center;
  }

  .feature img,
  .gallery-grid img,
  .hero-image img {
    max-width: 90%;
    height: auto;
  }

  .geometry {
    display: none;
  }
}
