/* ===== RESET ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f4f6f9;
  color: #1c2430;
  line-height: 1.6;
}

/* ===== CONTAINER ===== */

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

/* ===== NAVBAR ===== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  padding: 20px 0;

  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 30px;
  transition: 0.3s;
}

.navbar a:hover {
  color: #3b82f6;
}

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

.hero {
  height: 100vh;
  display: flex;
  align-items: center;

  background: linear-gradient(
      90deg,
      rgba(6, 18, 38, 0.95) 0%,
      rgba(6, 18, 38, 0.8) 40%,
      rgba(6, 18, 38, 0.4) 100%
    ),
    url('../assets/hero.png') center/cover no-repeat;

  color: white;
  padding-top: 80px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 550px;
  margin-bottom: 35px;
}

/* ===== BUTTON ===== */

.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6);
}

/* ===== SECTION DARK ===== */

.section-dark {
  background: #0b1f3a;
  color: white;
  padding: 120px 0;
}

.section-dark h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.section-dark p {
  opacity: 0.75;
  max-width: 700px;
}

/* ===== SECTION LIGHT ===== */

.section-light {
  background: #f4f6f9;
  padding: 120px 0;
}

.section-light h2 {
  font-size: 38px;
  margin-bottom: 60px;
}

/* ===== CARDS ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.card {
  background: white;
  padding: 50px 35px;
  border-radius: 18px;
  transition: 0.4s;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin-bottom: 15px;
}

.card p {
  color: #6b7280;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* ===== SECTION TRANSITIONS ===== */

.section-dark + .section-light {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.section-light + .section-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== ANIMATIONS ===== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }
}
/* === PŁYNNE PRZEJŚCIA MIĘDZY SEKCJAMI === */

.section-dark {
  background: linear-gradient(
    to bottom,
    #0b1c33 0%,
    #0e223d 70%,
    #f4f6f9 100%
  );
}

.section-light {
  background: #f4f6f9;
  position: relative;
}

.section-light::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(11, 28, 51, 0),
    #f4f6f9
  );
}
/* === PŁYNNE PRZEJŚCIE HERO → DARK SECTION === */

.hero {
  position: relative;
  z-index: 1;
}

/* gradient nakładany na dół hero */
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(
    to bottom,
    rgba(8, 20, 38, 0) 0%,
    rgba(8, 20, 38, 0.7) 60%,
    #081426 100%
  );
  pointer-events: none;
}

/* dopasuj kolor sekcji ciemnej */
.section-dark {
  background: #081426;
}

.hero {
  background-blend-mode: multiply;
}

