@charset "utf-8";

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #4990B8, #FFFFFF);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Universal Headings */
h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.project-header {
  width: 100%;
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.project-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.program-icons {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  gap: 15px;
  padding-right: 15px;
}

.program-icon {
  width: 55px;
  height: 55px;
  border-radius: 7px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-content {
  display: flex;
  gap: 0px; /* odstęp między kolumnami */
  width: 100%;
  flex-wrap: wrap; /* jeśli chcesz, by na małych ekranach układało się w kolumny */
	align-items: stretch; /* ważne! wszystkie kolumny będą tej samej wysokości */
}

/* Kolumny */
.column1 {
  display: flex;
  flex-direction: column;
  align-items: center;     /* wyśrodkowanie w poziomie */
  justify-content: flex-start; /* wyrównanie do góry */;
	width: 30%;
}
.column2 {
 display: flex;
  flex-direction: column;
	width: 20%;
}
.column3 {

  display: flex;
  flex-direction: column;
  align-items: center;     /* wyśrodkowanie w poziomie */
  justify-content: flex-start; /* wyrównanie do góry */
	width: 50%;
}

/* Kolumna 1 – główne zdjęcie */
.main-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Kolumna 2 – małe obrazki */
.small-images {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.small-images img {
  width: 42%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	margin-left: 10px;
}

/* Kolumna 3 – opisy */
.description-boxes {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portfolio-project-description-box p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.chart-box {
  position: relative;
  width: 180px;
  height: 180px;
}

.chart-box canvas {
  width: 100%;
  height: 100%;
}

.chart-box .center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 700;
  color: #333;
}

.center-label .value {
  font-size: 2rem;
  line-height: 1;
}

.center-label .unit {
  font-size: 0.9rem;
  color: #666;
}


/* Kolory */
.kolorA { background-color: #2c3e50; }
.kolorB { background-color: #e67e22; }
.kolorC { background-color: #27ae60; }

.tag-photoshop,
.tag-adobeIlustrator {
  background: #ececec;
  color: #444;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 5px;
  margin-left: 5px;
  font-weight: 600;
}

.tag-bar {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag-bar span {
  background: #FAD9C7;
  padding: 5px 10px;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 500;
  color: #333;
}

.main-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.portfolio-project-description-box {
 background: #fff;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    text-align: left;
    width: 100%;
}

.portfolio-project-description-box h5 {
  font-size: 1rem;
  margin-bottom: 0px;
  color: #4990B8;
}

.chart-scale-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.chart-scale-container > div {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: bold;
  color: #2a6c8e;
}
/* === PORTFOLIO CAROUSEL === */
.carousel-container {
  overflow-x: auto;
  white-space: nowrap;
  padding: 20px 0;
  margin-bottom: 40px;
  scroll-snap-type: x mandatory;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

.logo-thumb {
  width: 100px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  scroll-snap-align: start;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo-thumb:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* === ROZWIJANE DIVY Z PROJEKTAMI === */

.projektyDetale{
	
	padding: 3rem 1rem;
    background: linear-gradient(to bottom, #FFF8F2, #FFF8F2);
    text-align: center;
}
.portfolio-project {
  display: none;
  background: none;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 80%;
  transition: all 0.3s ease;
}

.portfolio-project.active {
  display: block;
  animation: slideIn 0.4s ease forwards;
}

/* Ukryty stan */
.portfolio-project.hidden {
  display: none;
}

/* Opis projektu */
.portfolio-project h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-project .project-category {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Obrazki projektu */
.portfolio-project .portfolio-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
	width: 100%;
}

.portfolio-project .portfolio-images img {
  max-width: 25%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
	margin: 0 auto;
}


.portfolio-carousel-section {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* === Karuzela z widocznym środkiem === */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.carousel-visible{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0 10%;
/* hide scrollbar cross-browser */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/old Edge */
}
.carousel-visible::-webkit-scrollbar{ /* Chrome/Safari/Edge (Blink/WebKit) */
  display: none;
}

.carousel-track{
  display: inline-flex;
  gap: 20px;
  width: max-content;
  /* usuń transition: transform i overflow: hidden jeśli były */
}

.logo-thumb{
  flex: 0 0 auto;          /* nie zawijaj i nie zmniejszaj miniaturek */
  scroll-snap-align: start;
}

.logo-thumb:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* === Strzałki === */
.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 10%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #333;
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  z-index: 2;
  cursor: pointer;
  user-select: none;
}

.carousel-arrow.left {
  left: 0;
}

.carousel-arrow.right {
  right: 0;
}

.carousel-arrow:hover {
  background-color: rgba(255, 255, 255, 0.95);
}


/* Animacja wysuwania */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.lang-switcher button {
  border: none;
  background: none;
  font-size: 1.2rem;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.lang-switcher button:hover {
  opacity: 0.7;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
	padding-top:50px;
	padding-bottom: 50px;
  background: linear-gradient(to bottom, #FFFFFF, #cfe9f1);
  color: #fff;
  flex-wrap: wrap;
	width: 100%;
}
.header-left{
	width: 20%;
	text-align: center;
}
.header-left img {
  max-height: 60px;
  height: auto;
  width: auto;
	margin-left: 30%;
}

.header-center {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
	width:60%;
}

.header-center h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
	color: #ed208a;
}

.header-center .description {
  max-width: 500px;
  margin: auto;
  font-size: 1rem;
color: #636466;	
}

.header-right {
  display: flex;
  gap: 0.5rem;
	width: 20%;
}

.lang-icon {
  background: #fff;
  color: #4990B8;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.lang-icon:hover {
  background: #e0f0f8;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .header-left,
  .header-right {
    margin-top: 1rem;
  }

  .header-center h1 {
    font-size: 1.6rem;
  }

  .header-center .description {
    font-size: 0.95rem;
  }
}

/* CTA Button */
.cta-button {
  background: #FAD9C7;
  color: #000;
  padding: 0.8rem 1.5rem;
  margin-top: 2rem;
  display: inline-block;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-button:hover {
  background: #fff;
  color: #000;
}

/* Illustration */
.illustration {
  max-width: 400px;
  margin: 2rem auto;
}

.illustration img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Skills */
#skills {
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #cfe9f1, #FAD9C7);
  text-align: center;
}

.chart-container {
  max-width: 400px;
  margin: auto;
}

/* About */
#about {
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #FAD9C7, #f7e6d6);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 300px;

}

.about-text {
  flex: 2 1 400px;
  padding: 0 1rem;
}

.hobbies {
  text-align: center;
  padding: 2rem 1rem;
}

.hobby-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hobby-item {
  width: 120px;
  text-align: center;
}

.hobby-item img {
  width: 100%;
  border-radius: 10px;
  height: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hobby-item p {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Portfolio */
#portfolio {
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #f7e6d6, #FFF8F2);
  text-align: center;
}

.portfolio-intro {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.portfolio-item {
  background: none;
  padding: 1rem;
  border-radius: 15px;
  text-align: left;
}

.portfolio-item h3 {
font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
	 }



.project-category {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.portfolio-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.portfolio-images img {
  max-width: 48%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

/* Stats */
#stats {
  padding: 3rem 1rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.stat-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {

  font-size: 2rem;
  font-weight: bold;
  color: #4990B8;
  margin-bottom: 0.5rem;
}

/* Contact */
#contact {
  padding: 3rem 1rem;
  background: linear-gradient(to bottom, #FFF8F2, #FFF8F2);
  text-align: center;
}

.contact-intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.contact-form button {
  background: #4990B8;
  color: white;
  padding: 0.8rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #357a9c;
}

.contact-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-line img {
  width: 50px;
  transition: transform 0.3s;
}

.contact-line img:hover {
  transform: scale(1.05);
}
.chart-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
}
.contact-line p {
  margin-bottom: 0.5rem;
  font-weight: 600;
}
#site-footer {
  background: linear-gradient(to bottom, #FFF8F2, #FFFFFF);
  color: #4990B8;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-icons a {
  font-size: 1.4rem;
  color: #4990B8;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #000;
}
/* Responsive */
@media (max-width: 768px) {




  .illustration {
    max-width: 90%;
  }

  .portfolio-images img {
    max-width: 100%;
  }
}

.chart-container {
  max-width: 100%;
  width: 100%;
  height: 400px;
  margin: auto;
  padding: 1rem;
}
@media (max-width: 500px) {
  .chart-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .project-content {
    flex-direction: column;
  }

  .right-column {
    gap: 15px;
  }
}


/* =========================
   m2web.site – MOBILE PATCH
   (dopiąć NA KOŃCU pliku)
   ========================= */

/* Uspójnienie CTA */
.cta-button{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:48px; border-radius:999px; font-weight:700;
  letter-spacing:.01em; box-shadow:0 10px 24px rgba(0,0,0,.06);
}

/* Bazowe poprawki nagłówka na małych ekranach */
@media (max-width: 768px){
  header{
    padding: 28px 0 24px;
    background: linear-gradient(180deg,#FFFFFF 0%, #cfe9f1 100%);
  }
  .header-left, .header-center, .header-right{
    width:100%; order:unset;
  }
  .header-left{ order:1; text-align:center; margin-bottom:10px; }
  .header-left img{ max-height:36px; margin-left:0 !important; }
  .header-center{ order:2; padding:0 12px; }
  .header-right{ order:3; justify-content:center; gap:8px; margin-top:12px; }

  .header-center h1{
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.35; letter-spacing:.02em; margin-bottom: 10px;
  }
  .header-center .description{
    font-size: 14px; line-height:1.7; max-width: 92%;
    margin: 0 auto;
  }
  .cta-button{
    width: min(92%, 360px); margin-top: 16px;
  }
}

/* Sekcje – czytelniejsze odstępy */
@media (max-width: 768px){
  #skills, #about, #portfolio, #stats, #contact, .projektyDetale{
    padding: 32px 0 !important;
  }
  h2{ font-size: clamp(20px, 5.3vw, 26px); margin-bottom: 14px; }
}

/* Radar chart – stabilna wysokość na tel. */
@media (max-width: 500px){
  .chart-container{ height: 300px !important; }
}

/* Statystyki – 2 kolumny */
@media (max-width: 768px){
  .stats-grid{ grid-template-columns: repeat(2,1fr); gap:14px; }
  .stat-number{ font-size: 1.6rem; }
}

/* === Karuzela portfolio (dotyk + bez strzałek) === */
@media (max-width: 768px){
  .portfolio-carousel-section .carousel-visible{
    padding: 0 5%;
  }
  .portfolio-carousel-section .carousel-arrow{ display:none; }
  .portfolio-carousel-section .carousel-track{
    gap: 12px; scroll-behavior:smooth;
  }
  .portfolio-carousel-section .logo-thumb{
    width: 96px; height:auto; filter:none; border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
  }
}

/* === Karty projektów – 3 kolumny -> stos === */
@media (max-width: 1024px){
  .project-content{ gap:16px; }
}
@media (max-width: 768px){
  .project-content{ flex-direction: column; align-items: stretch; }
  .column1, .column2, .column3{ width:100% !important; }

  /* Duże zdjęcie */
  .main-image img{ width:100%; max-width:none; }

  /* Miniatury – przewijane poziomo palcem */
  .small-images{
    flex-direction: row; gap:12px; overflow-x:auto; padding: 6px 2px 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width:none;
  }
  .small-images::-webkit-scrollbar{ display:none; }
  .small-images img{
    width:auto; min-width: 140px; max-width: 48%; margin-left:0;
    border-radius:12px; box-shadow:0 3px 10px rgba(0,0,0,.06);
  }

  /* Opisy i „zegarki” */
  .portfolio-project-description-box{ width:100%; }
  .chart-scale-container{ justify-content:center; gap:14px; margin-top:16px; }
  .chart-box{ width:140px; height:140px; }
}

/* Sekcja „Portfolio – intro” */
@media (max-width: 768px){
  .portfolio-intro{ font-size:.95rem; padding: 0 12px; }
}

/* Stopka – ciaśniej i większe ikony */
@media (max-width: 768px){
  #site-footer{ padding: 22px 0; }
  .social-icons a{ font-size: 22px; }
}

@media (max-width: 480px){
  .project-header{ padding-top: 0; }
  .program-icons{
    position: static;        /* wyłącza absolute */
    justify-content: center; /* środek pod tytułem */
    margin-top: 6px;
    gap: 8px;
  }
  .program-icon{
    width: 32px; height: 32px; font-size: 14px;
  }
}
.footer-partners {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.partner-item {
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  padding: 15px 20px;
  width: 180px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* LOGO IMG */
.partner-item img {
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
}

/* TEKST LOGO (M2SIGN) */
.partner-text-logo {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* OPIS */
.partner-item p {
  font-size: 13px;
  color: #4990B8;
  font-weight: 500;
  line-height: 1.4;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-partners {
    gap: 15px;
  }

  .partner-item {
    width: 140px;
    padding: 12px;
  }

  .partner-item img {
    max-width: 80px;
  }

  .partner-text-logo {
    font-size: 18px;
  }
}
