/* ==========================================================================
   1. ZMIENNE CSS - Zmieniając te wartości, modyfikujesz całą stronę
   ========================================================================== */
:root {
  --primary-color: #2563eb;       /* Główny kolor akcentu (np. przyciski, ceny) */
  --primary-hover: #1d4ed8;       /* Odcień przy najechaniu */
  --secondary-color: #0f172a;     /* Główny kolor nagłówków i logo */
  --text-color: #334155;          /* Kolor czytelnego tekstu */
  --bg-light: #f8fafc;            /* Tło dla alternatywnych sekcji */
  --bg-white: #ffffff;            /* Czyste tło */
  --font-main: 'Inter', system-ui, sans-serif;
  --radius: 8px;                  /* Zaokrąglenie przycisków i kart */
  --transition: all 0.3s ease;
}

/* ==========================================================================
   2. RESET I STYLE BAZOWE
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-white);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

h1, h2, h3 {
  color: var(--secondary-color);
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.text-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   3. PRZYCISKI
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ==========================================================================
   4. NAWIGACJA
   ========================================================================== */
.header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   5. SEKCJA HERO (Z ciemnym tłem i zdjęciem)
   ========================================================================== */
.hero {
  padding: 110px 0;
  /* Przyciemniający nakładka (rgba) + ścieżka do zdjęcia w folderze img */
  background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('hero_1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #ffffff; /* Biały napis, żeby odznaczał się od ciemnego zdjęcia */
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: #e2e8f0; /* Bardzo jasny szary dla podtytułu */
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Jasny przycisk z obramowaniem specjalnie pod ciemne tło Hero */
.btn-hero-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-hero-outline:hover {
  background-color: #ffffff;
  color: var(--secondary-color);
}

/* ==========================================================================
   6. CENNIK (CSS GRID)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: var(--bg-white);
  padding: 35px 25px;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  text-align: center;
  border: 1px solid #e2e8f0;
  position: relative;
}

.card-featured {
  border: 2px solid var(--primary-color);
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 15px 0;
}

/* ==========================================================================
   7. KONTAKT & FORMULARZ
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary-color);
}

/* ==========================================================================
   8. STOPKA
   ========================================================================== */
.footer {
  background: var(--secondary-color);
  color: #94a3b8;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   9. RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 25px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
.card-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.card-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

.card-features li::before {
  content: "✓ ";
  color: var(--primary-color);
  font-weight: bold;
}
/* ==========================================================================
   SEKCJA USŁUGI (SIATKA KAFELKÓW)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.service-card {
  background: var(--bg-white);
  padding: 30px 20px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
  text-align: center;
}

/* Efekt delikatnego unoszenia karty po najechaniu */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}
/* ==========================================================================
   SEKCJA O FIRMIE / O MNIE
   ========================================================================== */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin: 15px 0 20px;
  color: var(--secondary-color);
  line-height: 1.25;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.feature-icon {
  font-size: 2rem;
  background-color: #eff6ff;
  padding: 12px;
  border-radius: 12px;
  line-height: 1;
}

.about-feature-card h4 {
  margin-bottom: 5px;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.about-feature-card p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.4;
}

/* RWD: Na ekranach podglądu mobilnego układa sekcję jedna pod drugą */
@media (max-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
/* ==========================================================================
   SEKCJA PROJEKTY / PORTFOLIO
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Efekt delikatnego unoszenia po najechaniu myszką */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  border-color: var(--primary-color);
}

/* Pojemnik na zdjęcie (kadruje wszystkie screeny do równej wysokości) */
.project-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Wypełnia cały obszar bez rozciągania proporcji */
  transition: transform 0.4s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.05); /* Zoom zdjęcia przy najeździe */
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Styl "pigułek" z technologiami */
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  background-color: #eff6ff;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #dbeafe;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.project-content p {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.project-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--secondary-color);
}
.project-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top;
  display: block;
}
/* ==========================================================================
   STYLE DLA OKNA MODALNEGO (CASE STUDY)
   ========================================================================== */
.open-modal-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Wnętrze Modala */
.modal-header-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.modal-body-title {
  font-size: 1.6rem;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.modal-body-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 24px;
}

.modal-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-tech-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-tech-item {
  background: #f1f5f9;
  color: #475569;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}