* {
  box-sizing: border-box;
}

:root {
  --nav-height: 56px;
  --nav-fade: 36px;
  --page-bg: #f5f5f5;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    rgba(43, 139, 191, 0.10) 0px,
    rgba(47, 168, 79, 0.08) 120px,
    #f5f5f5 220px,
    #f5f5f5 100%
  );  
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.main {
  position: fixed;
  top: calc(var(--nav-height) + var(--nav-fade));
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 120px;
}

.page-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-size: 84px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -2px;
}

.blue {
  color: #2b8bbf;
}

.green {
  color: #2fa84f;
  letter-spacing: 2px;
}

.subtitle {
  margin-top: 12px;
  font-size: 22px;
  color: #b8bcc4;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn {
  margin-top: 30px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #2b8bbf, #2fa84f);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(43, 139, 191, 0.3);
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--page-bg);
  z-index: -2;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: calc(var(--nav-height) + var(--nav-fade));
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
  z-index: 1000;
  box-sizing: border-box;
  background: transparent;
}

.top-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #2b8bbf 0%, #2fa84f 100%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.top-nav a,
.top-nav a:visited {
  color: white;
  text-decoration: none;
  font-size: 14px;
  position: relative;
  opacity: 1;
}

.top-nav a.active-section {
  opacity: 1;
}

.top-nav a.active-section::after {
  width: 100%;
}

.top-nav a:not(.active-section) {
  opacity: 0.85;
}

.top-nav a:hover {
  opacity: 0.8;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  transition: width 0.3s ease;
}

.top-nav a:hover::after {
  width: 100%;
}

.services {
  margin-top: 120px;
  text-align: center;
}

.services h2,
.projects h2,
.about h2 {
  background: linear-gradient(135deg, #2b8bbf, #2fa84f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-list,
.project-list {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.services-list-seo {
  list-style: none;
  padding: 0;
  margin: 24px auto 40px;
  max-width: 760px;
  text-align: center;
}

.services-list-seo li {
  color: #aaaaaa;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 6px;
}

.service,
.project {
  width: 100%;
  max-width: 320px;
  padding: 24px;
  border-radius: 12px;
  background-color: #151922;
  border: 1px solid #1f2430;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;  text-align: center;
}

.service,
.project,
.case-box {
  background: #0f172a;
  color: #cbd5e1;
}

.service:hover,
.project:hover {
  transform: translateY(-6px);
  background-color: #1b2030;
  border-color: rgba(43, 139, 191, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.service h3 {
  margin-bottom: 10px;
}

.project h3 {
  margin-bottom: 10px;
}

.service p,
.project p {
  font-size: 14px;
  text-align: center;
}

.service p,
.project p,
.case-box p,
.service li,
.project li,
.case-box li {
  color: #94a3b8;
}

.about {
  margin-top: 60px;
  max-width: 720px;
  text-align: center;
}

.about p {
  color: #aaaaaa;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer {
  margin: 140px auto 0;
  width: calc(100% - 32px);
  max-width: 600px;
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #151922;
  border-radius: 12px;
  border: 1px solid #1f2430;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer p {
  color: #aaaaaa;
  margin-bottom: 8px;
  text-align: center;
}

.footer a {
  color: #2b8bbf;
  text-decoration: none;
  text-align: center;
}

.footer .copyright {
  text-align: center;
}

.footer a:hover {
  color: #2fa84f;
}

.footer .copyright {
  margin-top: 20px;
  font-size: 12px;
  color: #666666;
}

#home,
#services,
#about,
#contact {
  scroll-margin-top: 120px;
}
#projects {
  scroll-margin-top: 30px;
}

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

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

.services,
.about,
.projects {
  width: 100%;
}

.services h2,
.about h2,
.projects h2 {
  text-align: center;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  text-decoration: none;
}

.linkedin-icon {
  width: 26px;
  height: 26px;
  fill: #2b8bbf;
  transition: 0.25s ease;
}

/* hover efekt */
.linkedin-link:hover .linkedin-icon {
  fill: #2fa84f;
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(47, 168, 79, 0.4));
}

.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 20px;
}

.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border-radius: 8px;
  transition: 0.2s ease;
  border: 1px solid transparent;
  opacity: 0.8;
}

.lang-switch img {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  display: block;
}

.lang-switch a:hover {
  background: rgba(255,255,255,0.12);
}

.lang-switch a:hover img {
  transform: scale(1.06);
}

.lang-switch a.active {
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 3px 10px rgba(0,0,0,0.28);
  opacity: 1;
}

.lang-switch a.active img {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(47,168,79,0.45);
  transform: scale(1.08);
}

.cta {
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.8;
  margin-bottom: 20px;
  color: #aaaaaa;

}

.seo-title {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-logo {
  font-size: 84px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -2px;
  text-align: center;
}

.experience {
  text-align: center;
  padding: 60px 20px;
}

.experience h2 {
  color: #5fa38c; /* ten sam co inne nagłówki */
  margin-bottom: 16px;
}

.experience p {
  max-width: 800px;
  margin: 0 auto;
  color: #9aa0a6;
  line-height: 1.6;
}

.case-study {
  text-align: center;
  padding: 60px 20px;
}

.case-study h2 {
  color: #5fa38c;
  margin-bottom: 30px;
}

.case-box {
  max-width: 700px;
  margin: 0 auto;
  background: #0f172a;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #1f2430;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: left;
}

.case-box h3 {
  margin-bottom: 15px;
}

.case-box p {
  color: #9aa0a6;
  margin-bottom: 15px;
  opacity: 0.85;
}

.case-box ul {
  list-style: none;
  padding-left: 18px;
  opacity: 0.8;
}

.case-box li {
  margin: 6px 0;
  color: #9aa0a6;
  margin-bottom: 6px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.case-box p + p {
  margin-top: 10px;
  opacity: 0.9;
}

.case-box .highlight {
  margin-top: 16px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 3px solid rgba(110, 231, 183, 0.7);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  color: #cbd5e1;
  opacity: 1;
}

.note {
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.6;
  text-align: center;
  width: 100%;
  display: block;
  clear: both;
}

.workflow {
  text-align: center;
  padding: 60px 20px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.workflow h2 {
  color: #5fa38c; /* Twój zielony */
}

.step {
  background: #0f172a;
  border: 1px solid #1f2430;
  border-radius: 10px;
  padding: 20px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: #94a3b8;
  font-size: 14px;
}

.service h3,
.project h3,
.step h3,
.project-box h3,
.case-box h3 {
  color: #2b8bbf;
}

@media (max-width: 768px) {
  body {
    background: #f5f5f5;
  }

  .top-nav {
    position: relative;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    text-align: center;
    background: linear-gradient(to right, #2b8bbf 0%, #2fa84f 100%);
    box-sizing: border-box;
    overflow: visible;

    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 1) 0%,
      transparent 100%
    );
  }

  .top-nav::before {
    display: none;
  }

  .top-nav::after {
    display: none;
  }

.top-nav a {
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 12px;
}

  .page-content {
    padding: 32px 16px 0;
  }

  .main {
    position: static;
    height: auto;
    overflow: visible;
    padding-bottom: 80px;
  }
  
  h1 {
    font-size: 42px;
    line-height: 1.05;
    text-align: center;
    word-break: keep-all;
  }

  .subtitle {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    padding: 0 8px;
  }

  .btn {
    font-size: 15px;
    padding: 10px 20px;
  }

  .projects,
  .services,
  .about {
    width: 100%;
    text-align: center;
  }

  .project-list,
  .service-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .service,
  .project,
  .footer {
    width: 100%;
    max-width: 100%;
  }

  .service,
  .project {
    margin-left: auto;
    margin-right: auto;
  }

  .footer {
    margin: 90px auto 0;
    width: calc(100% - 32px);
    max-width: 100%;
    padding: 22px 16px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
  grid-template-columns: 1fr;
  }

}