@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

:root {
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Roboto Slab", serif;
  --color-dark-blue: #0d1b2a;
  --color-medium-blue: #1b263b;
  --color-shadow-blue: #415a77;
  --color-light-blue: #778da9;
  --color-background: #e0e1dd;
  --color-accent: #c5a465;
  --color-white: #ffffff;
  --color-text: #0d1b2a;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--color-dark-blue);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
p {
  margin-bottom: 1rem;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--color-dark-blue);
}
ul {
  list-style: none;
}

.section-padding {
  padding: 6rem 0;
}
.bg-light {
  background-color: #f0f1ee;
}
.bg-dark {
  background-color: var(--color-dark-blue);
}
.text-center {
  text-align: center;
}
.text-white {
  color: var(--color-white);
}
.text-white h2,
.text-white h3,
.text-white p {
  color: var(--color-white);
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-dark-blue);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background-color: transparent;
  color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
}

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

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  color: var(--color-white);
}

.btn-accent::before {
  background-color: #a4854b;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  color: var(--color-dark-blue);
}

.btn-secondary::before {
  background-color: var(--color-white);
}

.btn-lg {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-background);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--color-light-blue);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.main-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background-color: transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-header.scrolled {
  background-color: rgba(224, 225, 221, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
}

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

.logo {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark-blue);
}
.logo-accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--color-dark-blue);
  padding-bottom: 0.5rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 150%;
  left: 0;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-medium);
  padding: 1rem;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  margin: 0.5rem 0;
}
.dropdown-menu a {
  color: var(--color-dark-blue);
  font-weight: 500;
  width: 100%;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
}
.dropdown-menu a:hover {
  background-color: var(--color-background);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark-blue);
  cursor: pointer;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../media/hero-background.png");
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--color-white);
}

.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(13, 27, 42, 0.8),
    rgba(27, 38, 59, 0.6)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 650px;
  margin-bottom: 2.5rem;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-indicator a {
  color: var(--color-white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
.section-title-container {
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  margin-bottom: 1rem;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--color-light-blue);
}

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

.feature-card {
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: var(--transition-smooth);
  border-bottom: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.feature-title {
  margin-bottom: 1rem;
}
.feature-description {
  font-size: 0.95rem;
}

.benefits-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}
.benefits-list {
  margin-top: 2rem;
  list-style: none;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.benefit-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-top: 5px;
}

#historie-sukcesu {
  background-color: var(--color-white);
}
.cases-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.case-study-card {
  border: 1px solid #ddd;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.case-study-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-medium);
}
.case-study-content {
  padding: 2rem;
}
.case-study-card blockquote {
  font-style: italic;
  font-size: 1.05rem;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.case-study-card cite {
  font-style: normal;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}
.case-study-author {
  font-size: 1.1rem;
}
.case-study-role {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-light-blue);
}
.case-study-result {
  background-color: var(--color-background);
  padding: 1rem 2rem;
  font-weight: 600;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.mission-card,
.vision-card {
  padding: 3rem;
  background-color: var(--color-medium-blue);
  border-radius: var(--border-radius-md);
  text-align: center;
}
.mission-icon,
.vision-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.team-member-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.team-member-icon {
  font-size: 4rem;
  color: var(--color-light-blue);
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}
.team-member-card:hover .team-member-icon {
  color: var(--color-accent);
  transform: scale(1.1);
}
.team-member-name {
  margin-bottom: 0.25rem;
}
.team-member-title {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.team-member-bio {
  font-size: 0.9rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.testimonial-icon {
  font-size: 3rem;
  color: var(--color-light-blue);
}
.testimonial-author h5 {
  margin: 0;
}
.testimonial-author span {
  color: var(--color-light-blue);
  font-size: 0.9rem;
}
.testimonial-body p {
  font-style: italic;
  font-size: 1.05rem;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background-color: var(--color-white);
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-dark-blue);
}
.faq-question i {
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.faq-answer p {
  padding: 0 2rem 1.5rem;
  margin: 0;
}
.link-styled {
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
}
.link-styled::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}
.link-styled:hover::after {
  transform: scaleX(1);
}

.cta-section {
  background: linear-gradient(
    45deg,
    var(--color-dark-blue),
    var(--color-medium-blue)
  );
  padding: 6rem 0;
  color: var(--color-white);
}
.cta-title {
  color: var(--color-white);
}
.cta-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1.5rem auto 2.5rem;
}
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 164, 101, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(197, 164, 101, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(197, 164, 101, 0);
  }
}
.main-footer {
  background-color: var(--color-dark-blue);
  color: var(--color-light-blue);
  padding-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-shadow-blue);
}
.footer-logo {
  font-family: var(--font-secondary);
  font-size: 2rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.footer-heading {
  font-family: var(--font-secondary);
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.footer-column ul li {
  margin-bottom: 0.8rem;
}
.footer-column ul a {
  color: var(--color-light-blue);
}
.footer-column ul a:hover {
  color: var(--color-white);
  padding-left: 5px;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-shadow-blue);
  color: var(--color-light-blue);
  border-radius: 50%;
}
.social-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}
.footer-bottom-link {
  font-weight: 600;
  color: var(--color-white);
}

.cookie-consent-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--color-medium-blue);
  color: var(--color-white);
  padding: 1.5rem 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  transition: bottom 0.5s ease-in-out;
}
.cookie-consent-banner.active {
  bottom: 0;
}
.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.cookie-content p {
  margin-bottom: 0;
}
.cookie-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 999;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .nav-links-wrapper {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  .nav-links-wrapper.active {
    left: 0;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }
  .nav-link {
    font-size: 1.2rem;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 1rem 0 0 1rem;
    background: none;
    min-width: auto;
  }
  .header-actions {
    display: none;
  }
  .hamburger {
    display: block;
    z-index: 1001;
  }
  .benefits-container,
  .mission-vision-grid {
    grid-template-columns: 1fr;
  }
  .benefits-image-column {
    order: -1;
  }
  .cases-slider {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-column.about-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  .hero-cta-group {
    justify-content: center;
    flex-direction: column;
  }
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-links,
  .footer-bottom {
    justify-content: center;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
