/* =========================
   RESET / BASE
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #111111;
  color: #ffffff;
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  line-height: 1.5;
  position: relative;
}

/* =========================
   BACKGROUND GRADIENT
========================= */

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 760px;
  background: linear-gradient(
    to bottom,
    rgba(58, 12, 78, 0.4),
    rgba(58, 12, 78, 0)
  );
  pointer-events: none;
  z-index: 0;
}

/* =========================
   CONTAINER
========================= */

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  padding: 0 10px;
  padding-top: 85px;
  padding-bottom: 100px;
  margin: 0 auto;
}

/* =========================
   MENU
========================= */

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-contact {
  height: 45px;
  min-width: 270px;
  padding: 0 24px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-contact:hover {
  background: #ffffff;
  color: #111111;
}

.logo {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* =========================
   HERO / INTRO
========================= */

.hero {
  height: 310px;
  display: flex;
  align-items: flex-end;
}

.hero-text {
  text-align: left;
}

.hi {
  font-family: 'Lexend Peta', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.name {
  font-family: 'Lexend Peta', sans-serif;
  font-size: 55px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.desc {
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 200;
  margin-top: 10px;
  line-height: 1.35;
  max-width: 700px;
}

/* =========================
   PORTFOLIO SECTION
========================= */

.portfolio {
  margin-top: 65px;
}

/* TWO COLUMN GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* COLUMN STACK */
.col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================
   PROJECT CARDS
========================= */

.project {
  background: #1a1a1a;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 400;
  opacity: 0.95;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.project video,
.project img {
  transition: transform 0.6s ease;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.project:hover video,
.project:hover img {
  transform: scale(1.02);
}

.project a {
  width: 100%;
  height: 100%;
  display: block;
}

.project video,
.project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FIRST GRID – LEFT COLUMN */
.p1 { height: 320px; }
.p2 { height: 500px; }
.p3 { height: 320px; }

/* FIRST GRID – RIGHT COLUMN (split evenly) */
.p4,
.p5 {
  height: 580px;
}

/* FULL WIDTH PROJECT */
.full {
  width: 100%;
  height: 480px;
  margin-bottom: 20px;
}

/* SECOND GRID */
.p7 { height: 730px; }

.p8,
.p9 {
  height: calc(730px / 2 - 10px);
}

/* =========================
   DEBUG / DEV (optional)
========================= */

/*
.project {
  outline: 1px dashed rgba(255,255,255,0.1);
}
*/

/* =========================
   GRID 12 COL (REUSE)
========================= */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* =========================
   PHOTO DIVIDER
========================= */

.photo-divider {
  margin: 100px 0;
  display: flex;
  justify-content: center;
}

.photo-divider img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

/* =========================
   ABOUT SECTION
========================= */

.about-section {
  margin-bottom: 120px;
}

.section-title {
  grid-column: 1 / span 3;
  font-family: 'Lexend Peta', sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.about-text {
  grid-column: 4 / span 9;
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 200;
  line-height: 1.45;
  max-width: 900px;
}

/* =========================
   SOFTWARE
========================= */

.software-section {
  margin-bottom: 120px;
}

.software-grid {
  grid-column: 4 / span 9;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

.software-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Lexend', sans-serif;
  font-size: 20px;
  font-weight: 300;
}

.software-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

/* =========================
   CLIENTS
========================= */

.clients-section {
  margin-bottom: 160px;
}

.clients-grid {
  grid-column: 4 / span 9;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.client {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* =========================
   INFO CARDS
========================= */

.info-cards {
  margin-top: 60px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  height: 395px;
  border-radius: 20px;
  padding: 40px;

  display: flex;
  flex-direction: column;

  justify-content: flex-start; /* ⬅️ OD GÓRY */
  align-items: center;         /* ⬅️ POZIOMO */

  text-align: center;

  background-size: cover;
  background-position: center;
}

.info-card.nda {
  background-image: url('assets/images/nda.jpg');
}

.info-card.other {
  background-image: url('assets/images/other.jpg');
}

.info-title {
  font-family: 'Lexend Deca', 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-text {
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 200;
  line-height: 1.35;
}

/* =========================
   CTA
========================= */

.cta {
  margin-top: 150px;
  margin-bottom: 150px;
  text-align: center;
}

.cta-small {
  font-family: 'Lexend', sans-serif;
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 12px;
}

.cta-big {
  font-family: 'Lexend Peta', sans-serif;
  font-size: 40px;
  font-weight: 600;
}

/* =========================
   BOTTOM GRADIENT
========================= */

.bg-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 760px;
  background: linear-gradient(
    to top,
    rgba(58, 12, 78, 0.4),
    rgba(58, 12, 78, 0)
  );
  z-index: 0;
  pointer-events: none;
}

