*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #a3afbb; /* Dark Blue */
  --secondary-color: #e5eeef; /* Medium Gray */
  --tertiary-color: white; /* Color-of-texts */
  --accent-color: #afe73c; /* ::after -effect */
  --navbar-scroll: #717e8b; /* Navbar background color on scroll */
}
html,
body {
  font-family: "Open Sans", sans-serif;
  background: var(--secondary-color);
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}
a {
  color: white;
  text-decoration: none;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: var(--tertiary-color);
  background-color: var(--primary-color);
  border: 1px solid var(--tertiary-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
  border-radius: 15px;
  z-index: 1;
  text-transform: uppercase;
  justify-content: center;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  transition: transform 0.4s;
  transform: scaleX(0);
  transform-origin: left;
  z-index: -1;
  text-align: center;
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn:hover {
  color: black;
}

/* .btn {
  padding: 0.5rem 2rem;
  background-color: var(--primary-color);
  border: 2px solid transparent;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
} */

/* Navbar */
.navbar {
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease-in-out;
}
.navbar.navbar--scroll {
  background-color: var(--navbar-scroll);
  backdrop-filter: blur(5px);
}
.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar__logo img {
  width: 256px;
  height: 72px;
}
.navbar__menu-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
}
.navbar__menu-link:hover,
.navbar__mobile-menu-link:hover {
  color: var(--accent-color);
}
.navbar__menu-link--primary,
.navbar__mobile-menu-link--primary {
  color: var(--tertiary-color);
}
.navbar__menu-link--primary:hover,
.navbar__mobile-menu-link--primary:hover {
  color: var(--accent-color);
}
/* Mobile Menu */
.navbar__mobile-menu {
  display: none;
  cursor: pointer;
}
.navbar__mobile-menu-items {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  opacity: 0.95;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease-in-out;
}
.navbar__mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 1.2rem;
}

.navbar__mobile-menu-items {
  transform: translateX(100%);
}
.navbar__mobile-menu-items.active {
  transform: translateX(0);
}
/* Hero */
.hero {
  background: black url(../images/projekty/mainLogo.jpg) center center/cover
    no-repeat;
  padding: 11.5rem 2rem 8rem;
}
.hero__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}
.hero__content {
  max-width: 500px;
}

.hero__title {
  font-size: 3.5rem;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.2;
}
.hero__title--primary {
  color: var(--primary-color);
}
.hero__description {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
}
.hero__image img {
  max-width: 500px;
  padding-left: 5rem;
}
.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.hero__button {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.hero__button i {
  margin-right: 10px;
}
.hero__thankyou {
  background-color: var(--secondary-color);
  margin: 3rem auto;
  border: 3rem;
  padding: 11rem 11rem 8rem;
  text-align: center;
}
.contact-info {
  display: block;
}
/* Portfolio Header */
.portfolio__header {
  border: 10px;
  padding: 20px;
}

/* Portfolio Title */
.portfolio__title {
  text-align: center;
  margin: 2rem;
  font-size: 2rem;
  padding: 15px;
  text-transform: uppercase;
  font-weight: 700;
  background-color: var(--primary-color);
  border-radius: 25px;
}

/* Portfolio Cards */
.portfolio__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns */
  gap: 20px; /* Adjust the gap between cards as needed */
}
.portfolio__card {
  /* background-color: var(--primary-color); */
  padding: 30px;
  border-radius: 18px;
  text-align: center;
}
.portfolio__card-title {
  color: #707a84;
  font-size: 1.4rem;
  margin-bottom: 8%;
  padding: 10px;
}
.portfolio__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 10px 10px 3px rgba(0, 0, 0, 0.5);
}
.portfolio__card-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  text-decoration: none;
}

/* photos */
.photo__title {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns */
  gap: 20px; /* Adjust the gap between images */
  padding: 20px; /* Padding inside the grid container */
}

.photo__title img {
  width: 100%; /* Full width of the grid cell */
  height: 100%; /* 50% of the viewport height */
  object-fit: cover; /* Ensures the image covers the area without distortion */
  border-radius: 8px; /* Optional: Add some border radius for styling */
  box-shadow: 6px 6px 4px rgba(0, 0, 0, 0.6); /* Optional: Add a shadow for depth */
}

.main_header {
  margin: 15px;
  padding: 15px;
  border: 15px;
  text-align: center;
  background: var(--secondary-color);
}

.main_header__title {
  margin: 15px;
  padding: 15px;
  border: 15px;
  text-align: center;
  text-transform: capitalize;
  position: relative;
  top: 10vh; /* Adjust this value to move the title lower */
  border-radius: 50px;
  background: var(--primary-color);
}
.photo__header {
  margin: 10px;
  padding: 15px;
  text-align: center;
  text-transform: capitalize;
}

/* Pricing */
.pricing {
  background: var(--secondary-color);
  padding: 4rem 2rem 6rem;
}
.pricing__title {
  font-size: 2.3rem;
  margin: 2rem;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--primary-color);
  border-radius: 25px;
}
.pricing__cards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.pricing__card-box {
  background: var(--primary-color);
  padding: 2.5rem;
  border-radius: 25px;
  margin-bottom: 2rem;
}
.pricing__card-box img {
  border-radius: 15px;
}
.pricing__card-title {
  font-size: 1.4rem;
  text-transform: uppercase;
}

.pricing__card-price {
  font-size: 3rem;
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}
.pricing__card-list {
  text-align: center;
  line-height: 2.5rem;
  font-weight: 300;
}
.pricing__card-item i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}
/* Extra */
.Extra {
  background: lightcoral;
  padding: 4rem 2rem 6rem;
}
/* Photos */
.photo {
  background: var(--tertiary-color);
  padding: 4rem 2rem 6rem;
}

.photo__cards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.photo__card-box {
  background: rgba(20, 238, 78, 0.9);
  padding: 2.5rem;
  border-radius: 30px;
  margin-bottom: 2rem;
}
.photo__card-title {
  font-size: 1.4rem;
  text-transform: uppercase;
}
.photo__card-price {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}
.photo__card-list {
  text-align: left;
  line-height: 2.5rem;
  font-weight: 300;
}
.photo__card-item i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}
/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 4rem 2rem;
  font-size: 0.9rem;
}
.footer__links-link,
.footer__social-link {
  color: var(--tertiary-color);
}
.footer__links-link:hover,
.footer__social-link:hover {
  color: var(--accent-color);
}
.footer__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: space-between;
  align-items: center;
  gap: 6rem;
}
.footer__title {
  font-size: 1.2rem;
  color: var(--tertiary-color);
  margin-bottom: 0.5rem;
}
.footer__social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
/* Contact Form */
#contact-form-title {
  margin: 1.5rem auto;
  padding: 0.25rem;
  width: 65%;
  border-radius: 25px;
  text-align: center;
  background: var(--primary-color);
}
.contact-form label {
  display: block;
  width: 65%;
  margin: 1rem auto auto;
  font-family: inherit;
  font-size: medium;
  text-align: left;
  color: var(--primary-color);
  padding-left: 1rem;
  /* background: var(--primary-color); */
  /* border-radius: 25px; */
  /* font-size: 1.2rem;
  margin-bottom: 0.5rem;
} */
}
.contact-form input,
.contact-form textarea {
  display: block;
  font-family: inherit;
  font-size: medium;
  width: 65%;
  margin: 1.5rem auto;
  border: 1px solid var(--tertiary-color);
  padding: 1.2rem 1rem;
  border-radius: 25px;
}
.contact-form textarea {
  height: 200px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  background-color: var(--accent-color);
}
.contact-form .btn {
  display: block;
  width: 65%;
  font-size: inherit;
  font-family: inherit;
  margin: 5px auto;
  padding: 5px auto;
  margin-bottom: 2rem;
}

#scrollButtons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  pointer-events: auto; /* Ensure clicks are registered */
}
#scrollUpBtn.show,
#scrollDownBtn.show {
  opacity: 1;
}
#scrollUpBtn,
#scrollDownBtn {
  display: none; /* Hidden by default, shown via JS */
  width: 40px;
  height: 40px;
  border: none;
  outline: none;
  background-color: rgba(44, 62, 80, 0.8); /* Your primary color with opacity */
  color: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin: 5px 0;
  font-size: 18px;
  justify-content: center;
  align-items: center;
}

#scrollUpBtn:hover,
#scrollDownBtn:hover {
  background-color: #333; /* Add a dark-grey background on hover */
}
/* Media Queries */
@media (max-width: 992px) {
  /* Hero */
  .hero {
    padding: 10rem;
    text-align: center;
  }
  .hero__container {
    flex-direction: column;
  }
  .hero__title {
    font-size: 2.3rem;
  }
  .hero__buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .hero__button {
    width: 100%;
  }
  .hero__image img {
    max-width: 350px;
  }
  /* Footer */
  .footer {
    font-size: 1rem;
  }
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    max-width: 600px;
  }
  /* Scroll UP/DOWN Buttons */
  #scrollButtons {
    right: 5vw;
    bottom: 45vh;
  }
  #scrollUpBtn.show,
  #scrollDownBtn.show {
    opacity: 1;
  }

  #scrollUpBtn,
  #scrollDownBtn {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    padding: 10px;
    font-size: 14px;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 768px) {
  /* Mobile Menu */
  .navbar__menu {
    display: none;
  }
  .navbar__mobile-menu {
    display: block;
  }
  .testimonials__container {
    grid-template-columns: 1fr;
  }
  .portfolio__cards {
    grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
  }
  .photo__title {
    grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
  }
  .photo__title img {
    width: 100%; /* Full width on small screens */
  }
  /* Adjusted for single column on mobile screens */
  .pricing__cards {
    flex-direction: column; /* Change to column direction */
  }
  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .portfolio__cards {
    grid-template-columns: 1fr; /* One column on small screens */
  }
  .photo__title {
    grid-template-columns: 1fr; /* One column on small screens */
  }
  /* Adjusted for single column on mobile screens */
  .pricing__cards {
    flex-direction: column; /* Change to column direction */
  }
  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}
