/* Base styles and reset */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --dark-color: #2b2d42;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #fff;
  overflow-x: hidden;
}

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

section {
  padding: 100px 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn--secondary:hover {
  background: rgba(67, 97, 238, 0.1);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--dark-color);
}

.logo span {
  color: var(--primary-color);
}

.nav__list {
  display: flex;
  align-items: center;
}

.nav__item {
  margin-left: 30px;
}

.nav__link {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
}

.nav__link--cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.nav__link--cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  position: relative;
  width: 30px;
  height: 2px;
  background: var(--dark-color);
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--dark-color);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
  position: relative;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  color: var(--dark-color);
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat__label {
  font-size: 1rem;
  color: var(--gray-color);
}

/* Intro Section */
.intro {
  background-color: white;
}

.intro__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro__text {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Services Section */
.services {
  background-color: #f9f9f9;
}

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

.service-card {
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card__icon {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 1.5rem;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__list li {
  padding: 0.5rem 0;
  color: #666;
  position: relative;
  padding-left: 1.5rem;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
}

/* Features Section */
.features {
  background-color: white;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature {
  text-align: center;
}

.feature__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature__icon i {
  font-size: 24px;
  color: white;
}

.feature__title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.feature__text {
  color: var(--gray-color);
}

/* Contact Section */
.contact {
  background-color: #f9f9f9;
}

.contact__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact__content {
  max-width: 800px;
  margin: 0 auto;
}

.contact__text {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact__info {
  margin-top: 40px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact__info-item i {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
}

.contact__form {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.form-group.checkbox label {
  font-size: 0.9rem;
  font-weight: 400;
}

/* Testimonials Section */
.testimonials {
  background-color: white;
  position: relative;
}

.testimonials__slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  min-width: 100%;
  padding: 20px;
  flex-shrink: 0;
}

.testimonial__content {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}

.testimonial__content::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(67, 97, 238, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial__text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
}

.testimonial__author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.testimonial__author-position {
  color: var(--gray-color);
  font-size: 0.9rem;
}

.testimonials__nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonials__nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.testimonials__nav-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* FAQ Section */
.faq {
  background-color: #f9f9f9;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background-color: white;
  border-radius: var(--border-radius-md);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq__question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq__question h3 {
  font-size: 1.1rem;
  margin: 0;
}

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq__answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer p {
  padding-bottom: 20px;
}

.faq__answer ol {
  padding-left: 20px;
  padding-bottom: 20px;
}

.faq__answer li {
  margin-bottom: 8px;
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

/* Process Section */
.process {
  background-color: white;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.process__step {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition);
}

.process__step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.process__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.process__step-title {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: var(--gradient-primary);
  color: white;
}

.cta__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta__text {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0 30px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer__column h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer__column h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__list a:hover {
  color: white;
  padding-left: 5px;
}

.footer__social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Naprawiam problem z ikoną checkmark */
.service-card__list li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: -20px;
}

/* Media Queries dla responsywności */
@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }
  
  .hero__title {
    font-size: 2.8rem;
  }
  
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
  
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .nav__list {
    display: none;
  }
  
  .nav__list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  
  .nav__item {
    margin: 10px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero__title {
    font-size: 2.2rem;
  }
  
  .hero__subtitle {
    font-size: 1.2rem;
  }
  
  .hero__cta {
    flex-direction: column;
  }
  
  .hero__stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .process__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .cta__title {
    font-size: 1.8rem;
  }
  
  .testimonial__content {
    padding: 25px;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
  }
  
  .footer__column {
    text-align: center;
  }
  
  .footer__column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Dodatek: animacje elementów po scrollowaniu */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Dodatek: style dla błędów formularza */
.error {
  border-color: var(--danger-color) !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2) !important;
}

.error-message {
  color: var(--danger-color);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Rozwiązanie problemu z gradientem w hero */
.hero__title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary-color); /* Fallback dla przeglądarek bez wsparcia dla gradient text */
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

/* Naprawienie przycisków */
.btn--primary {
  background-color: var(--primary-color); /* Fallback */
  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

/* Naprawa footera i CTA */
.cta, 
.footer {
  background-color: var(--dark-color); /* Fallback */
}

.cta {
  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
}

.cta__title,
.cta__text,
.footer {
  color: white !important;
}

.footer__list a,
.footer__bottom a,
.footer__bottom p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.nav__link--cta {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
}

.wow-box {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

.wow-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.wow-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.wow-box:hover::before {
    transform: translateX(100%);
}

.service-card {
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.service-card__icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card__list li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
}

.contact__box {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 400px;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(67, 97, 238, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.seo-content:hover::before {
    transform: translateX(100%);
}

.seo-content h3 {
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.seo-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.seo-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #444;
}

.seo-content ul,
.seo-content ol {
    margin: 1.5rem 0 2.5rem;
    padding-left: 2.5rem;
}

.seo-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #444;
    position: relative;
}

.seo-content ul li::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.facebook-ads-seo,
.sales-campaigns-seo,
.recruitment-campaigns-seo {
    padding: 6rem 0;
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    position: relative;
    overflow: hidden;
}

.facebook-ads-seo::before,
.sales-campaigns-seo::before,
.recruitment-campaigns-seo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.05), transparent);
    z-index: 0;
}

.seo-cta {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.seo-cta .btn {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    background: var(--gradient-primary);
    border: none;
    color: white;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.seo-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

/* Animacje dla sekcji SEO */
.facebook-ads-seo.wow-box,
.sales-campaigns-seo.wow-box,
.recruitment-campaigns-seo.wow-box {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.facebook-ads-seo.wow-box.visible,
.sales-campaigns-seo.wow-box.visible,
.recruitment-campaigns-seo.wow-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsywność dla sekcji SEO */
@media (max-width: 768px) {
    .seo-content {
        padding: 2rem;
    }

    .seo-content h3 {
        font-size: 1.8rem;
    }

    .seo-content p {
        font-size: 1.1rem;
    }

    .seo-cta .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .seo-content {
        padding: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.5rem;
    }

    .seo-content p {
        font-size: 1rem;
    }
}