/* Reset i bazowe ustawienia */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body * {
  cursor: none !important;
}
body{
  background-color: #fff;
  color: black;
  font-family: 'Alfabet', sans-serif;
  font-weight: 200;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-feature-settings: "liga" 1, "calt" 1, "swsh" 1;
  cursor: none !important;
}
.dark-page {
  background-color: #000 !important;
}
.dark-footer{
  background-color: #000 !important;
  color: #fff !important;
}
main {
  flex: 1;
}
/* Styl kursora */
#custom-cursor {
  position: fixed;
  width: 50px;
  height: 50px;
  pointer-events: none;
  background-image: url('/img/cursor.svg');
  background-size: cover;
  z-index: 9999;
  transition: transform 0.2s linear;
}
@media (pointer: coarse) {
  #custom-cursor {
    display: none !important;
  }
  body {
    cursor: auto !important; /* przywróć standardowy */
  }
}
/* Styl przycisku (z cursor: pointer) */
.rotating-target {
  cursor: pointer;
}

/* Font Bona Nova z ligaturami */
.bona-nova {
  font-family: 'Bona Nova', serif;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-feature-settings: "liga" 1, "calt" 1, "swsh" 1;
}
.afronaut{
  font-family: 'Afronaut Test', sans-serif;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-feature-settings: "liga" 1, "calt" 1, "swsh" 1;
}
/* Nagłówki */
.site-title {
  color: black;
  width: clamp(20%, 30%, 350px);
  margin-top: 30px;
  margin-left: 50px;
}
.social-link{
  color: #ccdc84;
  text-decoration: none;
}
/* Nawigacja */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 6em;
  flex-wrap: wrap;
}
@media (max-width: 940px) {
  nav ul{
    gap: 4em;
  }
}
nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1em;
  transition: color 0.3s;
}


/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* dokładnie 2 kolumny */
  max-width: 1900px;
  margin: 0 auto 30px;
  padding: 1em;
  margin-top: 5rem;
}
/*nowa sekcja galerii */

.project-gallery2 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 100%;
  padding: 60px 15vw;
  background-color: #fff;
}

.project-gallery2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-gallery2 img:hover {
  transform: scale(1.02);
}

.project-gallery2 video {
  width: 100%;
  height: auto; /* 🔑 zachowanie oryginalnej wysokości */
  display: block;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  object-fit: contain; /* lub usuń object-fit całkowicie */
}

.project-gallery2 video:hover {
  transform: scale(1.02);
}

.project-gallery2 video.wide {
  grid-column: span 12;
  align-self: start; /* ⬅️ ważne, by nie wymuszać rozciągania */
}
.project-gallery2 .video-wrapper.wide {
  aspect-ratio: unset !important;
}
.project-gallery2 img.wide {
  grid-column: span 12;
  aspect-ratio: 16 / 9;
}
.project-gallery2 .wide {
  grid-column: span 12;
  aspect-ratio: 16 / 9;
}
.project-gallery2 .poster {
  grid-column: span 12;
}
.project-gallery2 img.poster {
  grid-column: span 12;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;  
  display: block;
}
.project-gallery2 img.square {
  grid-column: span 6;
  aspect-ratio: 1 / 1;
}
.project-gallery2 img.third {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}
.project-gallery2 img,
.project-gallery2 .rotating-tile {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Responsywność */
@media (max-width: 1024px) {
  .project-gallery2 {
    grid-template-columns: repeat(6, 1fr);
  }
  .project-gallery2 img.wide {
    grid-column: span 6;
  }
    .project-gallery2 .wide {
    grid-column: span 6;
  }
    .project-gallery2 img.poster {
    grid-column: span 6;
  }
    .project-gallery2 .poster {
    grid-column: span 6;
  }
  .project-gallery2 img.square {
    grid-column: span 3;
  }
  .project-gallery2 img.third {
    grid-column: span 6;
  }  
}

@media (max-width: 600px) {
  .project-gallery2 {
    grid-template-columns: repeat(6, 1fr);
  }
  .project-gallery2 img.wide {
    grid-column: span 6;
  }
  .project-gallery2 .wide {
    grid-column: span 6;
  }
    .project-gallery2 img.poster {
    grid-column: span 6;
  }
    .project-gallery2 .poster {
    grid-column: span 6;
  }
  .project-gallery2 img.square {
    grid-column: span 3;
  }
    .project-gallery2 img.third {
    grid-column: span 6;
  }  
}


/*nowa sekcja galerii */

/* Lightbox Overlay */
.image-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Lightbox Image */
.image-lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* Close Button */
.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}


.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

/* Płytki galerii */
.tile {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
  -webkit-box-shadow: 8px 8px 24px 0px rgba(66, 68, 90, 1);
  -moz-box-shadow: 8px 8px 24px 0px rgba(66, 68, 90, 1);
  box-shadow: 8px 8px 24px 0px rgba(66, 68, 90, 1);
  border-radius: 20px;
  
}
.tile img,
.rotating-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.tile-link:nth-child(even) {
  margin-top: 6rem; /* dowolna wartość przesunięcia w dół */
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay .title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.overlay .desc {
  font-size: 25px;
  font-weight: 300;
}

.tile:hover {
  background-color: #ccdc85;
}

.tile:hover img {
  opacity: 0.1;
}

.tile:hover .overlay {
  opacity: 1;
}

.tile-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transform: scale(0.8); /* lub np. 0.75 */
}

/* Galeria projektów */
.project-gallery {
  display: grid;
  gap: 1em;
  max-width: 1900px;
  margin: 0 auto;
  padding: 2em;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.project-desc {
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  padding: 35px 20px;
  margin-top: 60px;
  text-align: center;
  color: #000;
}
.work-desc{
  margin-top: 35px;
  font-size: 25px;
}
@media (max-width: 1200px) {
  .desc-heading {
    font-size: 35px !important;
  }

  .work-desc {
    font-size: 22px !important;
  }
}

@media (max-width: 900px) {
  .desc-heading {
    font-size: 30px !important;
  }

  .work-desc {
    font-size: 20px !important;
  }
}

@media (max-width: 600px) {
  .desc-heading {
    font-size: 20px !important;
  }

  .work-desc {
    font-size: 15px !important;
    text-align: left;
  }
}

/* Obrotowe kafelki */
.rotating-tile {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}


/*.hero-section {
  position: fixed;
  top: 145px;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}
 */ 
 .landing-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px; /* lub dopasuj do wysokości headera */
  box-sizing: border-box;
  width: 100%;
  height: auto;
}
 .landing-section-shop {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 250px; /* lub dopasuj do wysokości headera */
  box-sizing: border-box;
  width: 100%;
  height: auto;
}
.landing-section img {
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: drawFromLeft 1.2s ease forwards;
  animation-delay: 0.3s;
}

@keyframes drawFromLeft {
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background-image: url('../img/Twarz2.jpg');
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease-out, filter 0.3s ease-out;
  will-change: opacity, filter;
}
.hero-section-mka {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/mka-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-index {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/index-landing.svg');
  background-size: cover;
  background-position: center;
}
.hero-section-nabial {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/nabial-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-kk {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/kk-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-abstrakt {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/abstrakt-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-koka {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.hero-section-koka.hero-section-black {
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section-koka.hero-section-black video {
  width: 100%;
  height: auto;
  display: block;
}
.hero-section-notesy {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/notesy-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-notesy2 {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/notesy2-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-ohara {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/ohara-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-plakaty {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/plakaty-landing.png');
  background-size: cover;
  background-position: center;
}
.hero-section-lmf {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/plakat-lmf-landing.svg');
  background-size: cover;
  background-position: center;
}
.hero-section-haiku {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/haiku-landing.jpg');
  background-size: cover;
  background-position: center;
}
.hero-section-ow {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-image: url('../img/otwarta-wystawa-landing.jpg');
  background-size: cover;
  background-position: center;
}
.sad-face {
  grid-column: 1 / -1;
  width: 25%;
  justify-self: center;
  margin-bottom: 20px;
}
#backgroundVideo {
  width: auto;
  height: 30vh;
  overflow: hidden;
  object-fit: cover;
}
@media (max-width: 980px) {
  #backgroundVideo {
    width: auto;
    height: 20vh;
  }
}
@media (max-width: 650px) {
  #backgroundVideo {
    width: auto;
    height: 15vh;
  }
} 
@media (max-width: 500px) {
  #backgroundVideo {
    width: auto;
    height: 10vh;
  }
} 
.hero-text {
  position: relative;
  z-index: 1;
  padding-top: 100vh; /* start pod zdjęciem */
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 10px;
  width: 80vw;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
}
.hero-text-shop {
  position: relative;
  z-index: 1;
  padding-top: 30vh; 
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 10px;
  width: 80vw;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
}
.hero-text-contact {
  position: relative;
  z-index: 1;
  padding-top: 30vh; 
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 10px;
  width: 80vw;
  max-width: 1200px;
  margin: 0 auto;
  color: white;
}
.about-h1 {
  grid-column: 1 / -1;
  font-size: clamp(2rem, 8vw, 100px);
  text-align: center;
}
.desc-heading{
font-size: 40px;
}
.about-desc {
  grid-column: 1 / -1;
  font-size: clamp(1.5rem, 6vw, 80px);
  line-height: 1.2;
  margin-bottom: 1em;
}
.about-desc-sm{
  grid-column: 1 / -1;
  font-size: clamp(1.5rem, 6vw, 40px);
  line-height: 1.2;
  margin-bottom: 3em;
}
.about-desc-sm-contact{
  grid-column: 1 / -1;
  font-size: clamp(1.5rem, 6vw, 40px);
  line-height: 1.2;
  margin-bottom: 1em;
}
.site-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: absolute;
  z-index: 10;
  margin-bottom: 5rem;
  width: 100%;
}

.hamburger {
  width: 40px;
  height: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: fixed;
  z-index: 20;
  transition: all 0.3s ease;
  margin-right: 70px;
  right: 0;
  top: 100px;
}
.hamburger::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: transparent;
  pointer-events: auto; 
  z-index: 1; 
}
.bar {
  height: 3px;
  background: #ccdc84;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

/* Początkowe długości */
.bar.top {
  width: 70%;
  align-self: flex-start;
  transition: all 0.3s ease-in-out;
}

.bar.middle {
  width: 100%;
}

.bar.bottom {
  width: 50%;
  align-self: flex-end;
  transition: all 0.3s ease-in-out;
}
.hamburger.clicked.final .bar.top,
.hamburger.clicked.final .bar.bottom {
  width: 100%;
  align-self: center;
}
/* Hover – wszystkie równe */
.hamburger:hover .bar {
  width: 100%;  
}

/* Krok 1: kliknięcie – przesunięcie górnej i dolnej kreski, znika środkowa */
.hamburger.clicked .top {
  transform: translateY(10px);
}

.hamburger.clicked .bottom {
  transform: translateY(-10px);
}

.hamburger.clicked .middle {
  opacity: 0;
}

/* Krok 2: final – przekształcenie w X */
.hamburger.clicked.final .top {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.clicked.final .bottom {
  transform: translateY(-10px) rotate(-45deg);
}

/* Kolor zmienia się tylko w finalnym stanie */
.hamburger.clicked.final .bar {
  background: #000 !important;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100vw;
  width: clamp(200px, 20vw, 300px);
  height: 100vh;
  background: #ccdc84;
  padding: 60px 20px;
  z-index: 10;
  overflow: hidden;

  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6), /* bounce slide */
    opacity 0.4s ease,
    box-shadow 0.4s ease;
}

.side-menu.open {
  right: 0;
  transform: translateX(0);
  opacity: 1;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

/* Animacja wejścia linków */
.side-menu ul li {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Gdy menu otwarte – pokazuj linki z opóźnieniem */
.side-menu.open ul li {
  opacity: 1;
  transform: translateX(0);
}

/* Dodaj opóźnienie kaskadowe */
.side-menu.open ul li:nth-child(1) { transition-delay: 0.1s; }
.side-menu.open ul li:nth-child(2) { transition-delay: 0.2s; }
.side-menu.open ul li:nth-child(3) { transition-delay: 0.3s; }
.side-menu.open ul li:nth-child(4) { transition-delay: 0.4s; }
.side-menu.open ul li:nth-child(5) { transition-delay: 0.5s; }
.side-menu.open ul li:nth-child(6) { transition-delay: 0.6s; }
.side-menu.open ul li:nth-child(7) { transition-delay: 0.7s; }
.side-menu.open ul li:nth-child(8) { transition-delay: 0.8s; }
.side-menu.open ul li:nth-child(9) { transition-delay: 0.9s; }

.side-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10rem;
}

.side-menu a {
  text-decoration: none;
  color: #000;
  font-size: 24px;
  transition: color 0.2s;
}

.side-menu a:hover {
  text-decoration: line-through #ffffff;
  text-decoration-thickness: 5px;
}

.site-footer {
  padding: 20px;
  background-color: #FFF; 
}

.footer-content {
  text-align: center;
}

.footer-icons{
  flex-direction: row;
  display: flex;
}
.footer-icons img {
  height: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-icons img:last-child {
  margin-right: 0;
}

/* Opcjonalny efekt hover na ikonach */
.footer-icons img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer-icons a {
  display: inline-block;
  margin-right: 15px;
}

.footer-icons a:last-child {
  margin-right: 0;
}

.footer-text {
  font-size: 15px;
  color: #000;
}
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-text {
    margin-left: 0;
    margin-top: 0.5em;
    text-align: center;
  }
}


/* Responsywność About */
@media (max-width: 1400px) {
  .about-h1 {
    font-size: clamp(2rem, 8vw, 80px);
  }
  .about-desc {
    font-size: clamp(1.5rem, 6vw, 50px);
  }
  .about-question {
    font-size: clamp(1.2rem, 3vw, 15px);
  }
  .about-list {
    font-size: clamp(1rem, 2vw, 20px);
  }
  .about-info {
  font-size: clamp(1rem, 2vw, 15px);
  }
}

@media (max-width: 1158px) {
  .about-h1 {
    font-size: clamp(2rem, 8vw, 75px);
  }
  .about-desc {
    font-size: clamp(1.5rem, 6vw, 45px);
  }
  .about-question {
    font-size: clamp(1.2rem, 3vw, 15px);
  }
  .about-list {
    font-size: clamp(1rem, 2vw, 15px);
  }
  .about-info {
    font-size: clamp(1rem, 2vw, 15px);
  }
}

@media (max-width: 465px) {
  .tile-link:nth-child(even) {
  margin-top: unset; /* dowolna wartość przesunięcia w dół */
}

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 365px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
/* Responsive */
@media (max-width: 768px) {
  .about-question{
    text-align: center;
  }
  .about-list{
    display: inline-block;
  }
  .hero-text {
    grid-template-columns: repeat(24, 1fr);
  }

  .about-h1,
  .about-desc {
    grid-column: 1 / -1;
    text-align: center;
  }

  .about-columns {
    grid-template-columns: repeat(12, 1fr);
  }

  .about-left,
  .about-right {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: unset;
  }

  .about-list ul {
    padding-left: 0;
    list-style-position: inside;
  }
}

/* Sekcja osiągnięć */
.achievements-section {
  background-color: #fff;
  padding: 2em 0;
  z-index: 1;
  position: relative;
}

.achievements-h2 {
  color: black;
  font-size: 40px;
  padding: 20px 0;
  text-align: center;
}

.achievements-columns {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 2em;
}

.achievements-left {
  grid-column: 2 / 12;
  text-align: center;
}

.achievements-left img {
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.achievements-right {
  grid-column: 13 / 24;
  text-align: left;
}

.achievements {
  color: black;
  font-size: 20px;
}

.achievements p {
  margin: 1em 0;
}

.achievements hr {
  border: none;
  border-top: 1px solid #aaa;
  margin: 1em 0;
}
@media (max-width: 1235px) and (min-width: 769px) {
  .achievements-h2 {
    font-size: 32px;
    padding: 15px 0;
  }

  .achievements-columns {
    padding: 0 1em;
    gap: 15px;
  }

  .achievements-left img {
    max-width: 85%;
  }

  .achievements {
    font-size: 18px;
  }

  .achievements p {
    margin: 0.8em 0;
  }

  .achievements hr {
    margin: 0.8em 0;
  }
}
/* Responsywność Achievements */
@media (max-width: 768px) {
  .achievements-columns {
    grid-template-columns: repeat(12, 1fr);
  }
  .achievements-left img{
    max-width: 30%;
  }
  .achievements-left,
  .achievements-right {
    grid-column: 1 / -1;
    text-align: center;
  }
  .achievements-right {
    text-align: left;
  }
}
.about-me-section {
  background-color: #ccdc84;;
  padding: 2em 0;
  z-index: 1;
  position: relative;
}

.about-me-h2 {
  color: black;
  font-size: 40px;
  padding: 20px 0;
  text-align: center;
}

.about-me-columns {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 20px;
  align-items: start;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 2em;
}

.about-me-left {
  grid-column: 1 / 12;
  text-align: center;
  align-self: center;
  width: 110%;

}

.about-me-left img {
  margin: 0 auto;
  display: block;
}

.about-me-right {
  grid-column: 13 / 24;
  text-align: left;
}

.about-me {
  color: black;
  font-size: 20px;
}

.about-me p {
  margin: 1em 0;
}

.about-me hr {
  border: none;
  border-top: 1px solid #aaa;
  margin: 1em 0;
}

/* Media Query 769px–1235px */
@media (max-width: 1235px) and (min-width: 769px) {
  .about-me-h2 {
    font-size: 32px;
    padding: 15px 0;
  }

  .about-me-columns {
    padding: 0 1em;
    gap: 15px;
  }


  .about-me {
    font-size: 18px;
  }

  .about-me p {
    margin: 0.8em 0;
  }

  .about-me hr {
    margin: 0.8em 0;
  }
}

/* Responsywność About Me */
@media (max-width: 768px) {
  .about-me-columns {
    grid-template-columns: repeat(12, 1fr);
  }

  .about-me-left img {
    max-width: 55%;
  }

  .about-me-left,
  .about-me-right {
    grid-column: 1 / -1;
    text-align: center;
  }

  .about-me-right {
    text-align: left;
  }
}

/* Zdjęcia About */
.about-photo {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: 1;
  position: relative;
}

.about-photo img:first-child {
  flex: 3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.about-photo img:last-child {
  flex: 2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.insta-section {
  z-index: 1;
  position: relative;
  background: black;
  padding-top: 2em;
}

/* Sekcja Instagram */
.insta-h2 {
  color: white;
  font-size: 40px;
  padding: 20px 0;
  text-align: center;
}

.insta-photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.insta-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Globalne obrazki */
img {
  border: none;
  outline: none;
  display: block;
}

/* Przycisk następnego projektu */
.next-project {
  text-align: center;
  padding: 2rem;
}

.next-arrow {
  font-family: 'Bona Nova', serif;
  text-decoration: none;
  color: inherit;
  display: inline-block;
  font-size: clamp(48px, 12vw, 150px);
  transition: transform 0.3s ease;
}

.next-arrow:hover {
  transform: scale(1.1);
}


#backToTop {
  position: fixed;
  top: 140px;
  right: 65px;
  z-index: 1000;
  color: #000;
  border: none;
  padding: 12px 16px;
  font-size: 45px;
  cursor: pointer;
  display: none; /* ukryty na starcie */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: unset;
}

/* Stopka */
footer {
  color: #fff;
  font-size: 0.9em;
  padding: 2em 0;
  text-align: center;
}

.dog-runner {
  position: fixed;
  bottom: 0;
  left: -150px; /* start poza ekranem */
  width: 100px;
  height: auto;
  z-index: 999;
  animation: dogMove 8s linear infinite;
}

@keyframes dogMove {
  0% {
    left: -150px;
  }
  100% {
    left: 100vw;
  }
}
.dog-runner a {
  display: block;
  width: 100%;
  height: 100%;
}


#dog-frame {
  width: 100%;
  height: auto;
  cursor: pointer; 
}


/* Font Face */
@font-face {
  font-display: swap;
  font-family: 'Alfabet';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/subset-Alfabet-Regular.woff2') format('woff2'),
       url('../fonts/subset-Alfabet-Regular.woff') format('woff');
}
@font-face {
  font-display: swap;
  font-family: 'Afronaut Test';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/subset-AfronautTest-Regular.woff2') format('woff2'),
       url('../fonts/subset-AfronautTest-Regular.woff') format('woff');
}

/* Font Face */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/subset-Poppins-ExtraLight.woff2') format('woff2'),
       url('../fonts/subset-Poppins-ExtraLight.woff') format('woff');
}

@font-face {
  font-family: 'Bona Nova';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/BonaNova-Regular.woff2') format('woff2'),
       url('../fonts/BonaNova-Regular.woff') format('woff');
}
