/* RESET I ZMIENNE (DARK MODE) */
:root {
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --radius: 12px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
}

body {
  line-height: 1.6;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 60px 0;
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* LOGO W CSS/SVG */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.logo span {
  color: var(--primary);
}

/* NAWIGACJA */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* PRZYCISKI */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(59, 130, 246, 0.25);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-main);
  background: var(--bg-card);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* HERO STRONY GŁÓWNEJ */
.hero {
  padding: 80px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
}

.hero-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-item strong {
  color: var(--primary);
}

/* ROZWIJANA OFERTA (ACCORDION) */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.service-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-accordion[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.accordion-header {
  padding: 20px;
  background: var(--bg-card);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.accordion-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.accordion-content {
  padding: 0 20px 20px 20px;
  border-top: 1px solid var(--border);
  background: #182234;
}

.accordion-content p {
  margin-top: 16px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.accordion-content h4 {
  margin: 16px 0 8px 0;
  font-size: 1rem;
  color: var(--primary);
}

.accordion-content ul {
  list-style: none;
}

.accordion-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.info-note {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
  color: #fca5a5;
  padding: 12px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 0.88rem;
}

/* SIATKI I KARTY */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-box, .about-card, .price-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.feature-box .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CENNIK */
.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0;
}

.price-card ul {
  list-style: none;
  margin: 16px 0 24px;
  flex-grow: 1;
}

.price-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* KONTAKT */
.contact-box {
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  box-shadow: var(--shadow);
}

.contact-text h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.direct-contact {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.direct-contact p {
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* STOPKA */
.footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  background: var(--bg-main);
}

@media (max-width: 768px) {
  .hero-container, .contact-box {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 10px;
    font-size: 0.85rem;
  }
}
/* NOWE STYLE - FIX UNIKALNE KLASY */


.portfolio-container {
  max-width: 1150px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  justify-content: center !important;
  align-items: stretch !important;
  width: 100%;
}

.portfolio-card {
  background-color: #1a1a20;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  flex: 1 1 300px;
  max-width: 350px;
  min-width: 280px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

.card-image {
  position: relative;
  height: 200px;
  width: 100%;
  background-color: #2a2a35;
  overflow: hidden;
}

.card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.card-body p {
  color: #a0a0ab;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-demo {
  width: 100%;
  border: none;
  background-color: #2563eb;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-demo:hover {
  background-color: #1d4ed8;
}

/* OKNO MODALNE (LIGHTBOX) */
.modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
/* POPRAWKA ODSTĘPÓW I LINII */
#portfolio {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
  border: none !important;
  box-shadow: none !important;
}

#portfolio h2 {
  margin-bottom: 20px !important;
}

#portfolio p {
  margin-bottom: 50px !important; /* Odsuwa napis od kart */
}

/* Jeśli linia pochodzi z sekcji powyżej lub poniżej */
#portfolio * {
  border-top: none;
  border-bottom: none;
}
/* FIX NAWIGACJI I LOGO */
.nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
}

.brand-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: #ffffff !important;
}

.brand-logo:visited,
.brand-logo:active {
  color: #ffffff !important;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-text .highlight {
  color: #3b82f6 !important;
  font-weight: 400;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* STYLED POD EFEKT TILT 3D */
.portfolio-card {
  transition: transform 0.15s ease-out, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.portfolio-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Lekki efekt uwypuklenia elementów wewnątrz karty */
.portfolio-card:hover .card-image img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
/* ANIMOWANA KRESKA POD LINKAMI */
.nav-links a {
  position: relative;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff !important;
}

/* Tworzenie ukrytej linii */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Rozwijanie linii po najechaniu i dla aktywnej zakładki */
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
/* PRZYCISK KONTAKT Z POŚWIATĄ */
.nav-links .btn-secondary {
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: rgba(37, 99, 235, 0.1);
  padding: 8px 18px !important;
  border-radius: 8px;
  transition: all 0.3s ease !important;
}

.nav-links .btn-secondary::after {
  display: none; /* Wyłączenie kreski od spodu dla przycisku */
}

.nav-links .btn-secondary:hover {
  background: #2563eb !important;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 29, 0.85); /* Ciemne półprzezroczyste tło */
  backdrop-filter: blur(12px); /* Efekt rozmytego szkła */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 15px 0;
}