/* style.css - nowoczesny styl dla Truckio */

/* Reset i podstawy */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Pasek powitalny */
#hero {
  background-color: #004080;
    color: white;
  text-align: center;
  padding: 100px 20px;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  animation: fadeInDown 1s;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s;
}

.cta-button {
  background-color: white;
  color: #007bff;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
  animation: fadeInUp 1.2s;
}

.cta-button:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Logo */
.logo-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  background-color: white;
}

.logo img {
  width: 220px;
  height: auto;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.logo img:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Sekcja cards */
.cards, .audience, .problem-section, .about-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
  background-color: #fff;
}

.cards .card, .audience .card, .problem-section .card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cards .card:hover, .audience .card:hover, .problem-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.cards h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.cards p {
  color: #555;
}

/* Obrazy responsywne */
.responsive-images {
  padding: 40px 20px;
  text-align: center;
  background-color: #f0f2f5;
}

.responsive-images h2 {
  margin-bottom: 20px;
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.responsive-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.responsive-image:hover {
  transform: scale(1.8);
}

/* Modal kontaktowy */
#contact-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  padding: 15px 18px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: background 0.3s;
  z-index: 1000;
}

#contact-float:hover {
  background: #0056b3;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-content button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-content button:hover {
  background-color: #0056b3;
}

/* Stopka */
footer {
  background-color: #343a40;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Animacje własne */
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* RWD */
@media (max-width: 768px) {
  .cards, .audience, .problem-section, .about-section, .image-container {
    flex-direction: column;
    align-items: center;
  }
  .responsive-image {
    max-width: 90%;
  }
  .modal-content {
    margin-top: 30%;
  }
}
/* Sekcja wsparcia i newslettera */
.support-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  border-top: 2px solid #e0e0e0;
  opacity: 0;  /* Sekcja ukryta */
  transform: translateY(40px); /* Sekcja przesunięta w dół */
  transition: all 0.6s ease-in-out; /* Płynna animacja */
}

.support-newsletter.visible {
  opacity: 1;  /* Widoczna po dodaniu klasy */
  transform: translateY(0); /* Powróci na swoje miejsce */
}

.support-panel, .newsletter-panel {
  flex: 1;
  padding: 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.support-panel h2, .newsletter-panel h2 {
  margin-bottom: 1rem;
  color: #333;
}

.support-panel ul {
  margin: 1rem 0;
  padding-left: 20px;
}

.support-panel ul li {
  margin-bottom: 0.5rem;
  color: #555;
}

.newsletter-panel form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-panel input[type="email"] {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.newsletter-panel button {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-panel button:hover {
  background-color: #0056b3;
}

.support-panel .cta-button {
  background-color: #28a745;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.support-panel .cta-button:hover {
  background-color: #218838;
}
@media (max-width: 768px) {
  .support-newsletter {
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .support-panel,
  .newsletter-panel {
    padding: 1.5rem;
  }
}