@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #080d16;
  --surface: #101925;
  --surface-hover: #162232;
  --border: #263343;
  --white: #f3f6fa;
  --gray: #9ba9b9;
  --cyan: #00d4f4;
  --blue: #1677ff;
  --gradient: linear-gradient(120deg, #00d4f4, #1677ff);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

section {
  scroll-margin-top: 80px;
}

.accent {
  color: var(--cyan);
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

/* ===================================
   NAWIGACJA
=================================== */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;

  width: 100%;
  height: 84px;
  padding: 0 7%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(8, 13, 22, 0.94);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: #c4cedb;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  padding: 12px 18px;
  background: var(--cyan);
  color: #071019;
  border-radius: 5px;

  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: #57e7fa;
}

/* ===================================
   HERO
=================================== */

.hero {
  position: relative;
  min-height: 640px;
  padding: 155px 8% 115px;

  display: flex;
  align-items: center;

  background: #0b121d;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 40%;
  height: 100%;

  background: linear-gradient(90deg, #0b121d, rgba(15, 32, 49, 0.35));

  border-left: 1px solid rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.hero::after {
  content: "KXENO";
  position: absolute;
  right: -2%;
  bottom: 12%;

  font-size: clamp(100px, 16vw, 250px);
  font-weight: 800;
  letter-spacing: -12px;

  color: rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.hero-glow {
  display: none;
}

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

.hero h1 {
  margin: 24px 0 30px;

  font-size: clamp(44px, 5.8vw, 78px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--cyan);
}

.hero p {
  max-width: 530px;
  margin-bottom: 35px;

  color: #aebccc;
  font-size: 15px;
  line-height: 1.9;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;

  padding: 15px 23px;
  background: var(--cyan);
  color: #071019;
  border-radius: 5px;

  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.primary-button:hover {
  background: #57e7fa;
}

.hero-bottom {
  position: absolute;
  bottom: 35px;
  left: 8%;
  right: 8%;

  display: flex;
  justify-content: space-between;

  color: #74859a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.hero-bottom a:hover {
  color: var(--cyan);
}

/* ===================================
   NAGŁÓWKI SEKCJI
=================================== */

.section-heading {
  max-width: 850px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading h2 {
  margin: 16px 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -1.8px;
}

.section-heading h2 span,
.contact-box h2 span {
  color: var(--cyan);
}

.section-heading p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
}

/* ===================================
   OFERTY I KARUZELA
=================================== */

.offers-section {
  padding: 105px 0 90px;
  background: #0e1621;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 510px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

  touch-action: pan-y;
  user-select: none;
}

.offer-card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: min(390px, 78vw);
  height: 440px;
  padding: 34px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: #141f2c;
  border: 1px solid #29394a;
  border-radius: 18px;

  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.4s ease,
    border-color 0.3s ease,
    visibility 0.4s ease;
}

.offer-card.active {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  border-color: #42708b;
  background: #172535;

  transform: translate(-50%, -50%) scale(1);
}

.offer-card.left {
  z-index: 2;
  opacity: 0.48;
  visibility: visible;

  transform: translate(calc(-50% - 355px), -50%) scale(0.83);
}

.offer-card.right {
  z-index: 2;
  opacity: 0.48;
  visibility: visible;

  transform: translate(calc(-50% + 355px), -50%) scale(0.83);
}

.card-label {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.card-icon {
  width: 86px;
  height: 86px;
  margin: 25px 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #34485d;
  border-radius: 12px;
  background: #1c2d40;

  color: var(--cyan);
  font-size: 37px;
  font-weight: 800;
}

.offer-card h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.card-category {
  margin-top: 9px;

  color: var(--cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.offer-card > p {
  max-width: 290px;
  margin-top: 18px;

  color: var(--gray);
  font-size: 12px;
  line-height: 1.8;
}

.price {
  margin-top: auto;
  margin-bottom: 20px;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price small {
  color: var(--gray);
  font-size: 10px;
  letter-spacing: 1px;
}

.price strong {
  color: var(--white);
  font-size: 29px;
  font-weight: 800;
}

.details-btn {
  width: 100%;
  min-height: 45px;

  background: var(--cyan);
  border: none;
  border-radius: 5px;

  color: #071019;
  font-size: 11px;
  font-weight: 800;

  transition: background 0.2s ease;
}

.details-btn:hover {
  background: #57e7fa;
}

/* STRZAŁKI */

.arrow {
  position: absolute;
  top: 50%;
  z-index: 10;

  transform: translateY(-50%);

  width: 43px;
  height: 43px;

  border: 1px solid #34485d;
  border-radius: 7px;
  background: #182535;

  color: var(--white);
  font-size: 16px;
  transition: 0.2s;
}

.arrow:hover {
  background: var(--cyan);
  color: #071019;
}

.arrow.prev {
  left: max(20px, calc(50% - 275px));
}

.arrow.next {
  right: max(20px, calc(50% - 275px));
}

/* KROPKI */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background: #536276;
  transition: 0.2s;
}

.carousel-dots button.active {
  background: var(--cyan);
}

.pricing-note {
  margin-top: 30px;
  padding: 0 20px;

  color: var(--gray);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

/* ===================================
   O MNIE
=================================== */

.about-section {
  padding: 110px 8%;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;

  max-width: 1150px;
  margin: auto;
}

.about-visual {
  min-height: 340px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #121e2c;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.about-symbol {
  color: var(--cyan);
  font-size: 58px;
  font-weight: 800;
  font-family: Consolas, monospace;
}

.about-visual h3 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
}

.about-visual h3 span {
  color: var(--cyan);
}

.about-visual p {
  margin-top: 10px;

  color: var(--gray);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.about-text h3 {
  margin-bottom: 25px;
  font-size: 25px;
  font-weight: 800;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.9;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.skills span {
  padding: 9px 13px;

  background: #152536;
  border: 1px solid #2c4359;
  border-radius: 5px;

  color: #b5eaf3;
  font-size: 11px;
  font-weight: 600;
}

/* ===================================
   KONTAKT
=================================== */

.contact-section {
  padding: 95px 8%;
  background: #0e1621;
}

.contact-box {
  max-width: 950px;
  margin: auto;
  padding: 75px 30px;

  text-align: center;
  background: #141f2c;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.contact-box h2 {
  margin: 20px 0;
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.contact-box p {
  max-width: 460px;
  margin: 0 auto 30px;

  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
}

.email-link {
  display: block;
  width: fit-content;
  margin: 25px auto 0;

  color: var(--cyan);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ===================================
   STOPKA
=================================== */

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding: 30px 8%;
  border-top: 1px solid var(--border);

  color: var(--gray);
  font-size: 11px;
}

/* ===================================
   MODAL - SZCZEGÓŁY OFERTY
=================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;

  padding: 40px;
  background: #141f2c;
  border: 1px solid #34485d;
  border-radius: 12px;

  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 35px;
  height: 35px;

  background: #223247;
  border: none;
  border-radius: 5px;

  color: white;
  font-size: 24px;
}

.modal h2 {
  margin: 20px 0;
  padding-right: 25px;
  font-size: 28px;
}

.modal > p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
}

.modal h3 {
  margin: 28px 0 18px;
  font-size: 14px;
}

.modal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.modal li {
  color: #c2d0e0;
  font-size: 13px;
}

.modal li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 800;
  margin-right: 12px;
}

.modal-price {
  margin: 30px 0 22px;
  padding: 22px;

  display: flex;
  flex-direction: column;
  gap: 8px;

  background: #192b3a;
  border: 1px solid #2c4c5c;
  border-radius: 7px;
}

.modal-price span {
  color: var(--gray);
  font-size: 11px;
}

.modal-price strong {
  color: var(--cyan);
  font-size: 30px;
}

.modal .primary-button {
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

/* ===================================
   TABLETY
=================================== */

@media (max-width: 950px) {
  .nav-links {
    gap: 18px;
  }

  .about-grid {
    gap: 35px;
  }
}

/* ===================================
   TELEFONY
=================================== */

@media (max-width: 700px) {
  .navbar {
    height: 72px;
    padding: 0 5%;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 11px 13px;
    font-size: 11px;
  }

  .hero {
    min-height: 590px;
    padding: 135px 6% 110px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 55px);
    letter-spacing: -1.8px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-bottom {
    left: 6%;
    right: 6%;
    font-size: 9px;
  }

  .offers-section {
    padding: 75px 0;
  }

  .section-heading {
    padding: 0 15px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .carousel {
    height: 490px;
  }

  .offer-card {
    width: min(340px, 78vw);
    height: 420px;
    padding: 28px 23px;
    border-radius: 15px;
  }

  .offer-card.left {
    transform: translate(calc(-50% - 78vw), -50%) scale(0.82);
  }

  .offer-card.right {
    transform: translate(calc(-50% + 78vw), -50%) scale(0.82);
  }

  .card-icon {
    width: 76px;
    height: 76px;
    font-size: 32px;
    margin: 20px 0;
  }

  .offer-card h3 {
    font-size: 20px;
  }

  .arrow {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .arrow.prev {
    left: 5px;
  }

  .arrow.next {
    right: 5px;
  }

  .about-section {
    padding: 80px 6%;
  }

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

  .about-visual {
    min-height: 260px;
  }

  .contact-section {
    padding: 70px 5%;
  }

  .contact-box {
    padding: 60px 20px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal {
    padding: 30px 24px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 35px;
  }

  .hero-bottom {
    font-size: 8px;
  }

  .offer-card {
    width: 82vw;
    padding: 25px 18px;
  }

  .offer-card.left {
    transform: translate(calc(-50% - 82vw), -50%) scale(0.82);
  }

  .offer-card.right {
    transform: translate(calc(-50% + 82vw), -50%) scale(0.82);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ===================================
   PORTFOLIO — KARTY PROJEKTÓW
=================================== */

.portfolio-section {
  padding: 112px 7% 120px;
  background: #0b121d;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.portfolio-card {
  overflow: hidden;
  background: #111c29;
  border: 1px solid #263a4b;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 212, 244, 0.6);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.portfolio-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 215px;
  padding: 25px 28px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, #24455d, #132334 55%, #0d1724);
  border-bottom: 1px solid var(--border);
}

/* Zdjęcie w pierwszej karcie — bez starych elementów udających przeglądarkę */
.portfolio-preview--image {
  padding: 0;
  background: #101925;
}

.portfolio-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.05);
}

/* Podgląd demonstracyjny pozostałych dwóch projektów */
.preview-browser {
  width: 100%;
  max-width: 310px;
  height: 190px;
  overflow: hidden;
  background: #e8f2f8;
  border: 1px solid #60788b;
  border-radius: 9px 9px 0 0;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.portfolio-card:hover .preview-browser {
  transform: translateY(-2px);
}

.preview-toolbar {
  height: 26px;
  padding: 5px 12px;
  color: #8093a6;
  background: #d5e1ea;
  font-size: 12px;
  letter-spacing: 3px;
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 22px;
}

.preview-line {
  display: block;
  height: 8px;
  background: #bdcfda;
  border-radius: 20px;
}

.preview-line-title {
  width: 65%;
  height: 17px;
  background: #26475c;
}
.preview-line-long {
  width: 92%;
}
.preview-line-short {
  width: 70%;
}

.preview-fake-button {
  display: block;
  width: 90px;
  height: 25px;
  margin-top: 8px;
  background: #00b9d7;
  border-radius: 4px;
}

.portfolio-info {
  padding: 28px;
}

.portfolio-number {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.portfolio-info h3 {
  margin: 12px 0;
  font-size: 21px;
  letter-spacing: -0.5px;
}

.portfolio-info p {
  min-height: 48px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.7;
}

.portfolio-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 22px;
  padding: 11px 0;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.portfolio-link:hover {
  gap: 20px;
}

/* Nawigacja oraz responsywność */
@media (min-width: 701px) and (max-width: 1050px) {
  .navbar {
    padding: 0 4%;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-links a {
    font-size: 10px;
  }
}

@media (max-width: 950px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .navbar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 5% 0;
  }

  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 21px;
    padding: 13px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    white-space: nowrap;
    font-size: 11px;
  }
  .hero {
    padding-top: 175px;
  }

  .portfolio-section {
    padding: 80px 6%;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .portfolio-preview {
    height: 210px;
  }
}
