/* ===========================
   GLOBAL RESET & BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --max-width: 1300px;
  --accent: #0066cc;
  --muted: #666;
  --bg-gray: #f4f4f4;
  --card-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

body {
  margin: 0;
  font-family: "Lato", sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility helper: hidden for screen readers only when needed */
.sr-only { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Typography spacing for paragraphs (fix for desktop spacing) */
p {
  margin-bottom: 1rem; /* ensures visible paragraph spacing on desktop */
  color: #333;
  font-size: 1rem;
}

/* Headings */
h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: #111;
  margin-bottom: 0.6rem;
}

/* Links default */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(6px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #e6e6e6;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.mobile-toggle {
  display: none;
  font-size: 26px;
  color: #333;
  cursor: pointer;
}

/* nav menu */
nav.nav-menu { display: block; }
nav.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
  margin: 0;
}

nav.nav-menu ul li {
  display: inline-flex;
  align-items: center;
}

/* regular link style */
nav.nav-menu ul li a {
  display: inline-block;
  padding: 6px 8px;
  font-weight: 600;
  color: #333;
  transition: color 0.2s ease, transform 0.12s ease;
}

/* spacing for icon-only links */
nav.nav-menu ul li.nav-icon a {
  padding: 6px;
  font-size: 1.25rem;
}

/* hover */
nav.nav-menu ul li a:hover {
  color: #000;
  transform: translateY(-2px);
}

/* Mobile behaviour: hamburger toggles body.nav-open which reveals nav-menu */
@media (max-width: 900px) {
  .mobile-toggle { display: block; }

  nav.nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    padding: 16px 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  }

  body.nav-open nav.nav-menu { display: block; }

  nav.nav-menu ul {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  nav.nav-menu ul li.nav-icon { margin-top: 8px; }
}

/* ===========================
   HERO / BANNER
   =========================== */
/* NOTE: Using the local path for the uploaded converted image.
   If you prefer images/GenAI_converted.jpg, replace the url below. */
/*.hero-banner {
  width: 100%;
  height: 250px;
  background-image: url("images/GenAI_converted.jpg");
  background-repeat: no-repeat;
  background-position: center top; /* keeps main part of image visible 
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 70px;
}

/* larger on desktop 
@media (min-width: 900px) {
  .hero-banner { height: 420px; }
}

/* optional overlay darkening for contrast on top of image 
.hero-banner::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.18));
  pointer-events: none;
}*/

.hero-banner {
  width: 100%;
  height: 420px;
  background: url("images/GenAI_converted.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-top: 70px;
}

.hero-banner h1 {
  font-size: 3rem;
  margin-bottom: 0;
}

.hero-banner h2 {
  font-size: 1.5rem;
  margin-top: 10px;
}

/* ===========================
   INTRO
   =========================== */
.intro-section { margin-top: -120px; }
.intro-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 36px 24px;
}

.intro-left { flex: 0 0 380px; }
.intro-right { flex: 1 1 auto; }

/* responsive portrait */
.responsive-portrait {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

/* stack on mobile */
@media (max-width: 900px) {
  .intro-container {
    flex-direction: column;
    text-align: center;
    margin-top: -60px;
    padding: 24px 18px;
  }
  .intro-left { width: 80%; max-width: 320px; }
  .intro-right { width: 100%; }
}

/* ===========================
   SECTION / CONTENT
   =========================== */
.section { padding: 70px 24px; }
.section.gray { background: var(--bg-gray); }

.container { max-width: var(--max-width); margin: 0 auto; }
.container.narrow { max-width: 700px; margin: 0 auto; }

/* lists and paragraphs spacing */
.container ul { margin-top: 0.5rem; margin-bottom: 1rem; padding-left: 1.1rem; }
.container li { margin-bottom: 0.7rem; line-height: 1.45; color: #333; }

/* Prevent very long words from overflowing on small screens */
.container { word-wrap: break-word; }

/* ===========================
   "Continue..." BUTTON & HIDDEN ITEMS
   =========================== */
.hidden-items { display: none; margin-top: 0.5rem; }
.btn-show {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn-show:hover { transform: translateY(-3px); background: #000; }

/* ===========================
   ABOUT ICONS
   =========================== */
.about-icons {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.about-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  color: #333;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: transform 0.14s ease, background 0.12s ease;
}
.about-icons a:hover { transform: translateY(-3px); color: var(--accent); }

/* ===========================
   FOOTER / CONTACT ICONS
   =========================== */
footer {
  text-align: center;
  padding: 28px 20px;
  background: #111;
  color: #eee;
}

.contact-icons {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
}

.contact-icons a img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  transition: transform 0.16s ease;
}
.contact-icons a img:hover { transform: translateY(-4px); }

/* ===========================
   TYPOGRAPHY ADJUSTMENTS ON SMALL SCREENS
   =========================== */
@media (max-width: 900px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.05rem; }
  .section { padding: 40px 18px; }
}

/* small tweaks for very small devices */
@media (max-width: 420px) {
  .nav-container { padding: 10px 12px; }
  .logo { font-size: 1.05rem; }
  .mobile-toggle { font-size: 22px; }
  .about-icons a { width: 38px; height: 38px; }
  .contact-icons a img { width: 36px; height: 36px; }
}

/* ======================================
   RESPONSYWNOŚĆ – Minimalistyczna wersja mobilna
   ====================================== */

/* ---- TABLETY i WIĘKSZE TELEFONY ---- */
@media (max-width: 900px) {

  /* Intro: pionowy układ */
  .intro-container {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .intro-left,
  .intro-right {
    flex: 1 1 100%;
  }

  .intro-left {
    max-width: 320px;
    margin: 0 auto;
  }

  /* Odsunięcie od górnego banneru */
  .intro-section {
    margin-top: -80px;
  }

  /* Sekcje – ciaśniejsze marginesy */
  .section .container {
    padding: 0 18px;
  }

  h2 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }
}

/* ---- MAŁE TELEFONY (iPhone SE itd.) ---- */
@media (max-width: 600px) {

  body {
    font-size: 0.95rem;
  }

  /* Baner */
  .hero-banner {
    height: 260px;
    margin-top: 60px;
    background-position: center;
  }

  /* Poprawa odstępów sekcji */
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .container {
    padding: 0 14px;
  }

  /* Listy – lepsza czytelność */
  ul {
    padding-left: 18px;
  }

  /* Przycisk „Continue…” */
  .btn-show {
    font-size: 0.95rem;
    padding: 8px 14px;
  }

  /* Stopka */
  footer p {
    font-size: 0.85rem;
  }

  footer .contact-icons img {
    max-width: 70px;
  }
}

@media (max-width: 600px) {
  .intro-right img {
    max-width: 150px;
    margin: 0 auto 14px auto;
  }
}

