/* Reset i podstawowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body, html {
  font-family: 'Poppins', sans-serif;
  height: 100%;
}

/* Sekcja powitalna */
#hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(to right, #000000, #5c0e0e, #000000); /* Kolor tła */
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Tekst na powitalnym */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  animation: fadeInDown 2s ease;
}

.btn {
  background-color: #e50914;
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.2);
  background-color: #a80505e6;
}

.btn_apk {
  background-color: #e50914;
  color: #ffffff;
  display: block;
  margin: 0 auto;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn_apk:hover {
  transform: scale(1.2);
  background-color: #a80505e6;
}


.subtitle {
  font-size: 1.2rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 1s ease;
  color: #ffffff;
  text-shadow: #000000;
}

/* Animacja wejścia */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Menu nawigacyjne */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #5c0e0e;
  padding: 10px 0;
  display: none;
  z-index: 10;
}

#navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

#navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  transition: 0.3s;
}

#navbar ul li a.active,
#navbar ul li a:hover {
  background: #a80505e6;
  border-radius: 5px;
}

/* Sekcje strony */
.section {
  min-height: 100vh;
  padding: 60px 20px;
  background: #f5f5f5;
}


.section:nth-child(even) {
  background: #e0e0e0;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

/* Usługi */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: max-content;
}

.service {
  min-width: 200px;
  margin: 10px;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  flex-shrink: 0;
}

.service:hover {
  box-shadow: 4px 5px 10px #a80505e6;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: black;
  color: white;
  border: none;
  padding: 10px;
  z-index: 2;
  cursor: pointer;
  border-radius: 50%;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}



/* Strzałka do góry */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #000000; /* Kolor tła strzałki */
  color: white;
  padding: 10px;
  border-radius: 50%;
  display: none; /* Początkowo ukryta */
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: opacity 0.3s;
}

.scroll-to-top:hover {
  background-color: #ffffff; /* Kolor po najechaniu */
  color: #000000;
}

/* Stylowanie ikony */
.scroll-to-top i {
  font-size: 24px;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.project {
  width: 200px;
  height: 200px;
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project:hover {
  transform: scale(1.05);
}

.image-wrapper {
  width: 100%;
  height: 100%;  /* Teraz obraz zajmuje cały kafelek */
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease-in-out;
}

.hover-img {
  opacity: 0;
}

.project:hover .default-img {
  opacity: 0;
}

.project:hover .hover-img {
  opacity: 1;
}

.project p {

  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  width: max-content;
  text-align: center;
}

p {
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

/* Pisanie Textu */
#typewriter {
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  width: fit-content;
  animation: blink 0.7s step-end infinite;
  color: white;
  font-size: 2rem;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.tilt-box {
  width: 700px;
  height: auto;
  background: linear-gradient(145deg, #1f1f1f, #2d2d2d);
  color: rgb(0, 0, 0);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  min-height: auto;
  padding: 80px 20px;
  margin: auto;
  background: #f5f5f5;
  text-align: center;
  margin-top: 55px;
  margin-bottom: 155px;
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Kontakt */
.contact-section {
  background: linear-gradient(to right, #1a1a1a, #2c2c2c);
  color: #fff;
  padding: 60px 20px;
  animation: fadeInUp 1s ease-in;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
}

.contact-info, .contact-form-wrapper {
  flex: 1 1 400px;
}

.contact-info h2,
.contact-form-wrapper h2 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.contact-info p {
  font-size: 1.1em;
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.contact-info i {
  color: #5c0e0e;
  margin-right: 10px;
  font-size: 1.2em;
}

.contact-info-logo {
    text-align: left;
    perspective: 1000px; /* potrzebne dla efektu 3D */
}

.contact-info-logo img {
    padding-top: 20px;
    max-height: 220px;
    border-radius: 50%; /* zaokrąglony kształt */
    object-fit: cover;
    transition: transform 1.2s ease;
    transform-style: preserve-3d;
}

.contact-info-logo img:hover {
    transform: rotateY(360deg); /* efekt obracania jak moneta */
}


.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background-color: #444;
  color: #fff;
  font-size: 1em;
}

.contact-form button {
  background-color: #5c0e0e;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
  background-color: #a80505e6;
}

.contact-title {
color: #ffffff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wczytywanie */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.specialization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding: 2rem;
  perspective: 1000px;
}

.specialization-card {
  background: #787875;
  color: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px #b9b8b84d;
  transition: transform 0.3s ease, z-index 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
}

.specialization-card:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0px 15px 30px #a80505e6;
  background-color: #313131;
  color: #fff;
}

.p-specialization {
  font-size: 11px;
}

.p-specialization:hover {
  font-size: 14px;
}

.h3-specialization {
  font-size: 16px;
  text-align: center;
}

/* Stylizacja stopki */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 20px 0;
    width: 100%;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-logo {
    text-align: left;
}

.footer-logo img {
    max-height: 100px;
    border-radius: 50%; /* robi okrągły kształt */
    object-fit: cover;  /* przytnie obraz, żeby dobrze wypełnić okrąg */
}

.footer-contact {
    text-align: center;
}

.footer-rights {
    text-align: right;
    font-size: 14px;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-section p,
.footer-section a {
    color: #fff;
    text-decoration: none;
    margin: 5px 0;
}

.footer-section a:hover {
    color: #a80505e6;
}

/* komunikat formularz */
.form-message {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 5px;
  display: none; /* domyślnie ukryty */
  font-weight: 600;
  max-width: 300px;
}

.form-message.success {
  background-color: #4CAF50;
  color: white;
}

.form-message.error {
  background-color: #f44336;
  color: white;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
    max-width: 400px;
  }

  .carousel-track { 
    gap: 10px;
  }

  .service {
    min-width: 160px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .carousel-container {
    overflow-x: auto;
  }

  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
    max-width: 400px;
  }

  .tilt-box {
    width: 90%;
    font-size: 0.9rem;
    padding: 20px;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .contact-info-logo img {
    max-width: 180px;
      display: block;
  margin-left: auto;
  margin-right: auto;
    height: auto;
  }

.footer-logo img {
      display: block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
  padding-bottom: 20px;
}

}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .section {
    padding: 40px 15px;
  }
  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 100%;
    max-width: 400px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 0.9em;
  }

  .contact-form button {
    padding: 12px 20px;
    font-size: 0.9em;
  }

  #typewriter {
    font-size: 1.2rem;
  }

  .scroll-to-top {
    font-size: 16px;
    padding: 8px;
  }
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .btn, .btn_apk {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .tilt-box {
    width: 90%;
    font-size: 0.9rem;
    padding: 25px;
  }

  .contact-wrapper {
    gap: 30px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .project {
    width: 180px;
    height: 180px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn, .btn_apk {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .carousel-track {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .arrow {
    display: none;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .portfolio-container {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 90%;
    height: 200px;
  }

  .text-container {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  #typewriter {
    font-size: 1.3rem;
  }

  .btn, .btn_apk {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .service {
    min-width: 160px;
    padding: 15px;
  }

  .tilt-box {
    font-size: 0.85rem;
    padding: 20px;
  }

  .project p {
    font-size: 12px;
    padding: 4px 8px;
  }

  .contact-info i {
    font-size: 1em;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

