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

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

body {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background: #030303;
  color: #fff;
  line-height: 1.6;

  /* IMPORTANT FIX: allow scrolling */
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================
   SCROLL CONTAINER (DESKTOP SNAP SYSTEM)
========================================== */

.container {
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;

  width: 100%;
  height: 60px;

  display: flex;
  align-items: center;

  background: rgba(0, 0, 0, 0.5);
}

.navbar ul {
  display: flex;
  justify-content: center;
  width: 100%;
  list-style: none;
}

.navbar ul li {
  margin: 0 1rem;
  padding: 1rem;
}

.navbar ul li a {
  text-decoration: none;
  text-transform: uppercase;
  color: #f4f4f4;
}

.navbar ul li a:hover {
  color: skyblue;
}

/* ==========================================
   SECTIONS (DESKTOP DEFAULT)
========================================== */
.no-highlight {
  text-decoration: none;
  color: inherit;
  outline: none;
  transition: color 0.2s ease; /* smooth color change */
}

.no-highlight:hover {
  color: skyblue;
}

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

  text-align: center;

  width: 100%;
  height: 100vh;

  scroll-snap-align: center;

  padding: 80px 20px;
}

/* TYPOGRAPHY */
section h1 {
  font-size: 4rem;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, .6);
}

section p1 {
  font-size: 1.6rem;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 0, 0, .7);
  margin-bottom: 1em;
}

section p {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 66ch;
}

/* TEXT BLOCK */
.text-block {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
}

/* ==========================================
   BACKGROUNDS
========================================== */

section#bio {
  background: url('img/01_MH.jpg') no-repeat center center / cover;
}

section#archiwum {
  background: url('img/02_archiwum.jpg') no-repeat center center / cover;
}

section#social {
  background: url('img/03_social+.jpg') no-repeat center center / cover;
}

section#contact {
  background: url('img/04_contact_MH.jpg') no-repeat center center / cover;
}

/* ==========================================
   GRID
========================================== */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.item {
  background: #333;
  padding: 20px;
  text-align: center;
}

/* ==========================================
   MOBILE FIXES (CRITICAL SECTION)
========================================== */

@media (max-width: 768px) {

  /* disable snap scrolling (mobile feels bad otherwise) */
  .container {
    height: auto;
    overflow-y: auto;
    scroll-snap-type: none;
  }

  /* sections become natural height */
  section {
    height: auto;
    min-height: 100vh;
    padding: 100px 16px 60px;
  }

  /* typography scaling */
  section h1 {
    font-size: 2.2rem;
  }

  section p1 {
    font-size: 1.1rem;
  }

  section p {
    font-size: 1rem;
    max-width: 100%;
    text-align: center;
  }

  /* navbar wraps instead of breaking */
  .navbar {
    height: auto;
    padding: 10px 0;
  }

  .navbar ul {
    flex-wrap: wrap;
  }

  .navbar ul li {
    margin: 0.2rem;
    padding: 0.4rem;
  }

  /* grid becomes single column */
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   VERY SMALL PHONES
========================================== */

@media (max-width: 480px) {

  section h1 {
    font-size: 1.8rem;
  }

  section p {
    font-size: 0.95rem;
  }
}