/* TOKENS */
:root {
  --navy:    #12203A;
  --pink:    #0D6B35;
  --orange:  #F15A24;
  --white:   #FFFFFF;
  --off:     #F9F9F9;
  --border:  #E8E8E4;
  --mid:     #7A8099;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Inter', -apple-system, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--off);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════
   SPLIT LAYOUT (Desktop)
═══════════════════════════════════════════════ */
.split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* LEWA KOLUMNA - PRZYKLEJONA */
.left-col {
  width: 40%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 0.3rem 10px 0.3rem 10px;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.left-col::-webkit-scrollbar { display: none; }

.left-col-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(0.15rem, 0.4vh, 0.35rem);
  max-width: 520px;
  margin: 0 auto;
  padding: 0 10px;
  height: 100%;
  justify-content: flex-start;
}

/* PRAWA KOLUMNA - PRZEWIJANA */
.right-col {
  width: 60%;
  height: 100vh;
  background: var(--off);
  overflow-y: auto;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   KOMPONENTY W LEWEJ KOLUMNIE
═══════════════════════════════════════════════ */
.side-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vh, 1.3rem);
  color: var(--navy);
  margin-bottom: 0;
}
.nav-logo span { color: var(--pink); font-style: italic; font-weight: 400; }

.lang-switch {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
  border: 1.5px solid var(--pink);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.lang-switch:hover {
  background: var(--pink);
  color: #fff;
}

.side-section {
  display: flex;
  flex-direction: column;
  gap: clamp(0.1rem, 0.3vh, 0.25rem);
  padding-bottom: clamp(0.15rem, 0.3vh, 0.3rem);
  border-bottom: 1px solid var(--border);
}
.side-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2vh, 1.8rem);
  font-weight: 400;
  line-height: 1.0;
  color: var(--navy);
}
.hero-title em { color: var(--pink); font-style: italic; }

.hero-desc {
  font-size: clamp(1.6rem, 2.8vh, 2rem);
  line-height: 1.5;
  color: var(--mid);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vh, 1.6rem);
  font-weight: 400;
  text-align: center;
  white-space: normal;
}
.section-title em {
  color: var(--pink);
  font-style: italic;
}
.lepszej {
  color: var(--pink);
  font-style: italic;
  font-weight: 400;
}

.about-wrap-vertical {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.8rem);
}

.photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 25%;
}

.profile-img-vertical {
  width: 100%;
  height: auto;
  border-radius: 10px; 
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  margin-top: 0.2rem;
  transition: opacity 0.2s;
}
.whatsapp-link span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}
.whatsapp-link:hover { opacity: 0.7; }

.social-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.2rem;
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.linkedin-link:hover { opacity: 0.7; }

.about-p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.1rem, 1.8vh, 1.44rem);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 400;
}
.about-p em { color: var(--pink); font-style: normal; font-weight: 500; }

/* Formularz */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(0.15rem, 0.4vh, 0.3rem);
  margin-top: 0.1rem;
}
.f-group { display: flex; flex-direction: column; gap: 0.35rem; }
.f-group label { font-size: clamp(0.7rem, 1.1vh, 0.85rem); font-weight: 600; color: var(--navy); }
.f-group input, .f-group textarea {
  padding: clamp(0.25rem, 0.6vh, 0.45rem);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--ff-body);
  background: var(--off);
  font-size: clamp(0.7rem, 1.1vh, 0.85rem);
}
.btn-solid {
  background: var(--pink);
  color: var(--white);
  padding: clamp(0.3rem, 0.7vh, 0.5rem) 2rem;
  font-size: clamp(0.65rem, 1vh, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--pink);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.2rem;
}
.btn-solid:hover { background: var(--white); color: var(--pink); }

.f-error {
  display: none;
  font-size: 0.75rem;
  color: #d32f2f;
  margin-top: 0.2rem;
}
.f-group.error .f-error { display: block; }
.f-group.error input { border-color: #d32f2f; }

.form-success {
  display: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 1.8vh, 1.2rem);
  color: var(--navy);
  line-height: 1.5;
  padding: 1.2rem 1.5rem;
  margin: 0.5rem 1rem 0;
  border: 2px solid var(--pink);
  border-radius: 10px;
  background: transparent;
  font-weight: 500;
  text-align: center;
}
.form-success a { color: var(--pink); text-decoration: none; }
.form-success a:hover { text-decoration: underline; }

.side-footer {
  margin-top: auto;
  font-size: 0.7rem;
  color: var(--mid);
  text-align: center;
  padding-top: 30px;
}
.side-footer a { color: var(--pink); text-decoration: none; }
.side-footer a:hover { text-decoration: underline; }

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}
.footer-social a {
  color: var(--pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.footer-social a:hover {
  opacity: 0.7;
}

#contact.side-section {
  border-bottom: none;
}

.cta-text {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vh, 2.8rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
  padding: 1.5rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  background: var(--off);
  z-index: 2;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   KARTY PROJEKTÓW - TABLET MOCKUP
═══════════════════════════════════════════════ */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: none;
  margin: 0;
  padding: 3rem 2rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  overflow: visible;
  text-decoration: none;
  border-bottom: none;
}

.card:hover {
  transform: none;
}

/* Mockup tabletu */
.card-mockup {
  position: relative;
  width: 88%;
  max-width: 680px;
  background: #111;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.card-mockup picture {
  display: block;
}

.card img {
  width: 100%;
  height: 40vh;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  border: none;
}

/* Aktywna karta: przewija w dół i wraca na górę */
.card-active:hover img {
  animation: scrollDownUp 2s ease-in-out forwards;
}

@keyframes scrollDownUp {
  0%   { object-position: top center; }
  40%  { object-position: center center; }
  70%  { object-position: center center; }
  100% { object-position: top center; }
}

/* Kamera w tabletce */
.card-mockup::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #333;
  border-radius: 50%;
  z-index: 2;
}

/* Opis pod mockupem */
.card-info {
  text-align: center;
  margin-top: 1.2rem;
}

.card-cat {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.3rem;
}
.card-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vh, 2.2rem);
  color: var(--navy);
  line-height: 1.1;
}
.card-url {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  color: var(--mid);
  margin-top: 0.3rem;
}

.card-num {
  display: none;
}

/* ═══════════════════════════════════════════════
   ZINKO - BUTTON DO GÓRY
═══════════════════════════════════════════════ */
.back-to-cat {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.6;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}
.back-to-cat:hover {
  opacity: 1;
}
.back-to-cat img {
  width: 30px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  transition: width 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.back-to-cat:hover img {
  width: 140px;
  filter: drop-shadow(0 8px 20px rgba(13, 107, 53, 0.3));
  transform: translateY(-6px);
}

.cat-arrow {
  font-size: 0.8rem;
  color: var(--mid);
  opacity: 1;
  transition: font-size 0.2s ease;
  animation: catBounce 1.5s ease-in-out infinite;
}
.back-to-cat:hover .cat-arrow {
  font-size: 1.2rem;
}
@keyframes catBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.cat-caption {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0;
  color: var(--mid);
  letter-spacing: 0.05em;
  text-transform: lowercase;
  overflow: hidden;
  max-height: 0;
  transition: font-size 0.3s ease, max-height 0.3s ease;
}
.back-to-cat:hover .cat-caption {
  font-size: 0.85rem;
  max-height: 1.5rem;
}
.back-to-cat:hover .cat-caption {
  color: var(--pink);
}

/* Stopka mobilna - domyślnie ukryta */
.mobile-footer {
  display: none;
}

.cta-text .mobile-br {
  display: none;
}

@media (max-width: 1000px) {
  .section-title br { display: none; }
  .cta-text .mobile-br { display: block; }
  
  /* Zinko animation on mobile */
  .back-to-cat {
    bottom: 0.5rem;
    right: 0.5rem;
    animation: catMobileCycle 5s ease-in-out infinite;
    pointer-events: none;
  }
  
  .back-to-cat img {
    width: 25px;
    transition: none;
    animation: catImgGrow 5s ease-in-out infinite;
  }
  
  .back-to-cat:hover img {
    width: 25px;
    transform: none;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  }
  
  .cat-caption {
    display: none;
  }
  
  .cat-arrow {
    font-size: 0.6rem;
    animation: none;
  }
  
  @keyframes catMobileCycle {
    0% {
      transform: translateY(0);
    }
    /* slide up to heading height */
    30% {
      transform: translateY(-55vh);
    }
    /* shrink at heading height, hold */
    50% {
      transform: translateY(-55vh);
    }
    /* slide back down as small */
    80% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  @keyframes catImgGrow {
    0% {
      width: 25px;
    }
    /* grow big when sliding up */
    30% {
      width: 120px;
    }
    /* shrink to button height at top */
    50% {
      width: 30px;
    }
    /* stay small going down */
    80% {
      width: 25px;
    }
    100% {
      width: 25px;
    }
  }
  
  .split-layout {
    flex-direction: column;
  }
  .left-col {
    width: 100%;
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    overflow: visible;
  }
  .right-col {
    width: 100%;
  }
  .side-footer { display: none; }
  .mobile-footer {
    display: block;
    padding: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--mid);
    border-top: 1px solid var(--border);
  }
  .mobile-footer a { color: var(--pink); text-decoration: none; }
  .mobile-footer a:hover { text-decoration: underline; }
  .card-mockup {
    width: 95%;
  }
  .projects-list {
    gap: 3rem;
    padding: 2rem 1rem;
  }
}
