:root {
  /* Zmienne kolorów dla jasnego motywu */
  --bg-color: #f7f9fc;
  --text-color: #2E3440;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-color: #e1e1e1;
  --hero-bg: linear-gradient(135deg, #f7f9fc 0%, #e6f7f3 100%);
  --primary-color: #00D68F;
  --primary-dark: #00B377;
  --secondary-color: #5762D5;
  --feature-icon-bg: rgba(0, 214, 143, 0.1);
  --footer-bg: #2E3440;
  --footer-text: #E5E9F0;
  --section-gap: 100px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Zmienne kolorów dla ciemnego motywu */
    --bg-color: #2E3440;
    --text-color: #E5E9F0;
    --card-bg: #3B4252;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --border-color: #4C566A;
    --hero-bg: linear-gradient(135deg, #2E3440 0%, #3B4252 100%);
    --primary-color: #00D68F;
    --primary-dark: #70EFC4;
    --secondary-color: #81A1C1;
    --feature-icon-bg: rgba(0, 214, 143, 0.2);
    --footer-bg: #232730;
    --footer-text: #E5E9F0;
  }
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.logo-container {
  text-align: center;
}

.logo-light, .logo-dark, .logo-black {
  height: 80px;
  transition: opacity 0.3s ease;
}

/* Pokaż odpowiednie logo w zależności od motywu */
.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  
  .logo-dark {
    display: block;
  }
}

.hero {
  padding: 60px 0;
  text-align: center;
  background: var(--hero-bg);
  border-radius: 0 0 50px 50px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-color);
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.hero-btn {
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.hero-btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 214, 143, 0.3);
}

.hero-btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.hero-btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.hero-btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.construction-badge {
  display: inline-block;
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 20px;
  box-shadow: var(--card-shadow);
}

.construction-badge i {
  color: var(--primary-color);
  margin-right: 8px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.section-title:hover h2 {
  transform: translateY(-3px);
}

.section-title:hover h2::after {
  width: 100%;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-color);
  opacity: 0.8;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  background-color: var(--feature-icon-bg);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-color);
  opacity: 0.8;
}

/* Timeline - Oś czasu */
.timeline {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--border-color);
  z-index: 0;
}

.timeline-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--bg-color);
  border: 4px solid var(--border-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
}

.timeline-item.completed .timeline-dot {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.timeline-item.completed .timeline-dot::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: white;
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.timeline-item.current .timeline-dot {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 214, 143, 0.3);
}

.timeline-item.current .timeline-content {
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 15px;
  font-weight: bold;
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.timeline-item.current .timeline-date {
  font-size: 1rem;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
  position: relative;
}

.timeline-item.current .timeline-title {
  font-size: 1.2rem;
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Section Divider */
.section-divider {
  height: 60px;
  position: relative;
  margin: 0;
}

/* AI section */
#ai {
  padding-top: 20px;
  margin-top: 40px;
  position: relative;
}

#ai .section-title {
  margin-bottom: 40px;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.ai-feature-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.ai-feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.ai-feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  background-color: var(--feature-icon-bg);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 20px;
}

.ai-feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.ai-feature-card p {
  color: var(--text-color);
  opacity: 0.8;
}

.ai-cta {
  background-color: var(--feature-icon-bg);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.ai-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.ai-cta p {
  max-width: 700px;
  margin: 0 auto 25px;
  color: var(--text-color);
  opacity: 0.9;
}

.ai-cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 214, 143, 0.3);
  transition: all 0.3s;
}

.ai-cta-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.team-section {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--card-shadow);
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.team-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.team-section:hover .team-photo {
  transform: scale(1.05);
}

.team-name {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.team-bio {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-color);
  opacity: 0.9;
}

.support-section {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 50px 0;
  margin: 50px auto;
  box-shadow: var(--card-shadow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.support-section:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.support-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.support-content {
  flex: 1;
}

.support-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.support-content p {
  margin-bottom: 30px;
  color: var(--text-color);
  opacity: 0.9;
}

.support-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.support-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.qr-container {
  text-align: center;
}

.qr-code {
  width: 150px;
  height: 150px;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

.qr-code:hover {
  transform: scale(1.05);
}

.qr-label {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
}

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0;
  text-align: center;
}

.copyright {
  margin-bottom: 10px;
}

.creator {
  opacity: 0.7;
  font-size: 0.9rem;
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

/* Animacja dla elementów podczas przewijania */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Niestandardowy pasek przewijania */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Animacje */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 214, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0); }
}

/* Responsywność osi czasu dla urządzeń mobilnych */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .support-container {
    flex-direction: column;
    text-align: center;
  }

  .timeline {
    flex-direction: column;
    gap: 40px;
    margin-left: 15px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 10px;
    right: auto;
    height: 100%;
    width: 4px;
    background-color: var(--border-color);
    opacity: 0.8;
    border-radius: 4px;
  }

  .timeline-item {
    text-align: left;
    padding-left: 40px;
    margin-bottom: 15px;
    position: relative;
  }

  .timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px; /* Większe kropki */
    height: 24px;
    margin: 0;
    transform: translateX(-10px); /* Wyśrodkowanie na pionowej linii */
    border-width: 5px; /* Grubsza ramka */
    box-shadow: 0 0 0 3px var(--bg-color); /* Dodanie konturu dla lepszej widoczności */
  }
  
  .timeline-item.current .timeline-dot {
    width: 28px; /* Jeszcze większa dla bieżącego */
    height: 28px;
    transform: translateX(-12px);
    animation: pulse 2s infinite; /* Silniejszy efekt pulsowania */
  }

  .timeline-content {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .timeline-item.current .timeline-content {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    background-color: var(--feature-icon-bg);
    border-bottom: none;
  }
  
  .timeline-text {
    display: block !important;
    opacity: 1 !important;
  }
  
  /* Ulepszona typografia osi czasu */
  .timeline-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .timeline-date {
    display: inline-block;
    background-color: var(--feature-icon-bg);
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
  }
  
  /* Lepsze pozycjonowanie logo */
  .logo-container {
    margin: 0 auto;
    padding: 5px 0;
  }
  
  .logo-light, .logo-dark {
    height: 60px; /* Nieco mniejsze logo na urządzeniach mobilnych */
  }
  
  /* Uproszczony nagłówek */
  .header {
    padding: 15px 0;
    margin-bottom: 20px;
  }
  
  /* Ulepszony układ sekcji */
  section {
    padding: 50px 0;
  }
  
  .section-gap {
    margin: 30px 0;
  }
  
  /* Lepszy układ kart */
  .features, 
  .ai-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card,
  .ai-feature-card {
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .feature-card:hover,
  .ai-feature-card:hover {
    transform: translateY(-5px) scale(1.01); /* Subtelniejsza animacja na urządzeniach mobilnych */
  }
  
  /* Bardziej kompaktowa sekcja hero */
  .hero {
    padding: 40px 0 50px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  
  /* Lepszy układ przycisków */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-btn {
    width: 80%;
    text-align: center;
    padding: 12px 20px;
  }
  
  /* Ulepszony wygląd sekcji wsparcia */
  .support-container {
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
  }
  
  .qr-code {
    width: 140px;
    height: 140px;
  }
  
  /* Lepsze przejścia */
  .animate-fade-up {
    transform: translateY(15px); /* Mniejsza odległość na urządzeniach mobilnych */
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .animate-on-scroll {
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}

/* Ogólne ulepszenia przejść (wszystkie urządzenia) */
.feature-card,
.ai-feature-card,
.timeline-content,
.support-section,
.team-section {
  will-change: transform; /* Optymalizacja dla animacji */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-dot {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s ease;
}

.hero-btn,
.support-btn,
.ai-cta-btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ulepszona animacja pulsowania */
@keyframes pulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.8);
  }
  70% { 
    box-shadow: 0 0 0 15px rgba(0, 214, 143, 0);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(0, 214, 143, 0);
  }
}

/* Usunięcie poziomego menu mobilnego */
.mobile-nav-tabs {
  display: none !important;
}

@media (max-width: 768px) {
  /* Ukrycie wszystkich możliwych elementów menu */
  .mobile-menu-btn, 
  .mobile-nav, 
  .mobile-nav-tabs,
  nav,
  .nav,
  .navbar,
  .navigation,
  .sticky-nav,
  [class*="sticky"],
  [class*="fixed"] {
    display: none !important;
  }
  
  /* Upewnienie się, że istniejące elementy JS nie tworzą nowego menu */
  #mobileNavTabs,
  [id*="mobile"],
  [id*="nav"],
  [id*="menu"],
  [class*="mobile"],
  [class*="nav"],
  [class*="menu"] {
    display: none !important;
  }
  
  /* Fix dla ikony aplikacji mobilnej */
  .feature-card .fa-mobile-alt.feature-icon,
  .feature-card i.fas.fa-mobile-alt,
  i.fas.fa-mobile-alt.feature-icon {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--primary-color) !important;
    background-color: var(--feature-icon-bg) !important;
    width: 70px !important;
    height: 70px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 15px !important;
    margin-bottom: 20px !important;
    font-size: 2rem !important;
  }
  
  /* Naprawmy wszystkie ikony funkcji, na wszelki wypadek */
  .feature-card .feature-icon {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}