html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #000000 50%, #011c53 100%);
  background-attachment: fixed;
  color: #ffffff;
  scroll-behavior: smooth;
  min-height: 100vh;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 20px 10%;
  box-sizing: border-box;
}

.logo-portfolio {
  background: rgb(45, 107, 255, 0.2);;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  cursor: pointer;
  height: fit-content;
}

.logo-portfolio::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}


.logo-portfolio a {
  font-family: 'Michroma', sans-serif;
  font-size: 0.85rem !important;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0 !important; 
  margin: 0 !important;
  line-height: 1;
  display: block;
}

.logo-portfolio a:hover {
  background: transparent !important;
  border: none !important;
}

.logo-portfolio:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  background: rgb(45, 107, 255, 0.2);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 18px !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  border-radius: 100px;
  border: 1px solid transparent;
}

nav a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  opacity: 0.6;
}

nav a:hover, 
nav a.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  opacity: 1;
}
.hamburger-menu {
display: none;
cursor: pointer;
padding: 10px;
position: relative;
z-index: 30;
}
.hamburger-menu div {
width: 25px;
height: 3px;
background-color: #fff;
margin: 5px 0;
transition: 0.4s;
}
.hamburger-menu.open .bar1 {
transform: translate(0, 8px) rotate(-45deg);
}
.hamburger-menu.open .bar2 {
opacity: 0;
}
.hamburger-menu.open .bar3 {
transform: translate(0, -8px) rotate(45deg);
}
section {
padding: 120px 10%;
box-sizing: border-box;
position: relative;
}
#kontakt{
    padding-top: 250px!important;
}

#logo, #o-mnie,
#projekty,
#skills,
#kontakt {
cursor: pointer;
pointer-events: auto; 
}
section h2 {
font-size: 2.5rem;
text-align: center;
font-family: 'Michroma', sans-serif;
font-weight: 700;
margin-top: -50px;
z-index: 100;
}
section p {
max-width: 800px;
margin: 0 auto;
opacity: 0.85;
line-height: 1.6;
}
.hero {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
padding: 0;
z-index: 10;
}
.hero canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
z-index: 1;
}
.hero .content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10;
text-align: center;
background: radial-gradient(
ellipse 70% 70% at center,
rgba(0, 0, 0, 0.7) 10%,
rgba(0, 0, 0, 0) 70%
);
padding: 20px;
}
.hero h1 {
font-size: 2rem;
margin: 0 0 15px 0;
line-height: 1.2;
font-family: 'Michroma', sans-serif;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 25px;
opacity: 0.85;

}
.hero button {
background: #2d6bff;
color: #fff;
border: none;
padding: 14px 28px;
font-size: 1rem;
cursor: pointer;
border-radius: 100px;
transition: 0.3s;
font-family: 'Poppins', sans-serif;
font-weight: 600;
}
.hero button:hover {
background: #1a49b8;
}
.o-mnie-container {
display: flex;
justify-content: flex-end;
align-items: center;
position: relative;
width: 100%;
margin: 0 auto;
}
.o-mnie-container_left {
flex: 1;
min-width: 50%;
}
.o-mnie-container_right {
flex: 1;
min-width: 50%;
text-align: left;
z-index: 100;
}
.o-mnie-container_right p {
margin: 0;
font-size: 1.2rem;
}
.scatter-text {
    color: #ffffff; 
    perspective: 500px;
    font-family: 'Inter', sans-serif; 
    font-size: 0.95rem; 
    line-height: 1.6;
    opacity: 0.9;
}

.animate-me span {
    color: #3d3def;
    font-family: 'Michroma', sans-serif;
    font-weight: bold;
    font-size: 1rem;
}

.scatter-text span {
    display: inline-block;
    will-change: transform, opacity;
    color: inherit;
}

.animate-me {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 5px;
}
.scatter-text {
    color: #ffffff; 
    perspective: 500px;
    font-family: 'Inter', sans-serif !important; 
    font-size: 0.9rem !important;
    line-height: 1.6;
    opacity: 0.8; 
}

.scatter-text span {
    color: #ffffff !important; 
    font-family: 'Inter', sans-serif !important;
    font-size: inherit !important;
    font-weight: normal !important;
    text-shadow: none !important;
}

.animate-me {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    color: #ffffff;
    opacity: 0.8;
    margin-bottom: 10px;
}

.animate-me span {
    color: #2d6bff !important;
    font-family: 'Michroma', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: bold !important;
    display: inline-block;
    margin-left: 5px;
    opacity: 1 !important;
    text-shadow: 0 0 15px rgba(45, 107, 255, 0.4);
}
.projekty-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 20px;
justify-content: center;
width: 100%;
}
#projekty h3 {
font-family: 'Michroma', sans-serif;
font-weight: 700;
color: #2d6bff;
font-size: 1.3rem;
text-align: center;
margin: 40px 0 15px 0;
}
.projekty-grid .card {
background: #111;
padding: 0;
border-radius: 10px;
text-align: center;
width: 100%;
aspect-ratio: 16 / 10;
overflow: hidden;
cursor: pointer;
transition: transform 0.3s ease;
}
.card-visual{
border:1px solid  rgba(255, 255, 255, 0.1);
}
.projekty-grid .card:hover {
transform: translateY(-5px);
}
.projekty-grid .card img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
#skills {
    width: 100%;
    padding: 100px 10%;
    box-sizing: border-box;
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
}

.skill-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(45, 107, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    background: rgba(45, 107, 255, 0.05);
    transform: translateY(-5px);
}

.accordion-header {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    cursor: default;
    color: #fff;
}

.accordion-header h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    color: #2d6bff;
    margin: 0;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.accordion-content li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
}

.accordion-content li:hover {
    color: #fff;
    transform: translateX(5px);
}

.s-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.accordion-content li:hover .s-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(45, 107, 255, 0.5));
}


@media (max-width: 1100px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .accordion-header {
        cursor: pointer; 
        padding: 10px 0;
    }

    .arrow {
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #2d6bff;
        border-bottom: 2px solid #2d6bff;
        transform: rotate(45deg);
        transition: 0.3s;
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    }

    .skill-card.active .accordion-content {
        max-height: 1000px;
        transition: all 0.5s cubic-bezier(1, 0, 1, 0);
        margin-bottom: 10px;
    }

    .skill-card.active .arrow {
        transform: rotate(-135deg);
    }
    
    .skill-card.active {
        background: rgba(45, 107, 255, 0.1);
        border-color: #2d6bff;
    }
}

@media (min-width: 769px) {
    .arrow { display: none; }
    .accordion-content { max-height: none !important; }
}
.icon-light {
    filter: invert(1) brightness(2);
}
#certyfikaty, #kontakt, footer{
padding: 100px 0;
overflow: visible;
z-index: 100;
}
#con

.cert-marquee {
width: 100%;
overflow: hidden;
position: relative;
padding: 60px 0;
mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
-webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.cert-marquee-content {
display: flex;
gap: 50px;
width: max-content;
animation: scrollCerts 20s linear infinite;
}

.cert-marquee:hover .cert-marquee-content {
animation-play-state: paused;
}

.cert-tile {
position: relative;
width: 130px; 
height: 130px;
background: rgba(255, 255, 255, 0.07);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
transform: rotate(45deg); 
border-radius: 18px; 
display: flex;
justify-content: center;
align-items: center;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
margin: 25px; 
}

.cert-tile:hover {
background: rgba(45, 107, 255, 0.1);
border-color: #2d6bff;
box-shadow: 0 0 30px rgba(45, 107, 255, 0.4);
transform: rotate(45deg) scale(1.1);
}

.cert-info {
transform: rotate(-45deg);
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: 100%;
}

.cert-tile img {
height: 38px;
width: auto;
margin-bottom: 8px;
filter: none !important;
opacity: 1 !important;
transition: transform 0.3s ease;
}

.cert-tile:hover img {
transform: scale(1.1);
}

.cert-name {
color: #2d6bff;
font-family: 'Poppins', sans-serif;
font-weight: 700;
font-size: 10px;
line-height: 1.3;
text-transform: uppercase;
letter-spacing: 0.8px;
max-width: 90px;
white-space: normal;
text-shadow: 0 0 5px rgba(45, 107, 255, 0.2);
}
.cert-marquee-content {
display: flex;
gap: 50px;
width: max-content;
will-change: transform;
animation: scrollCerts 7s linear infinite;
}

@keyframes scrollCerts {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-33.33% - 16.66px)); 
}
}

.cert-logos-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: center;
  align-items: center;
}

.cert-logos-row img {
  height: 25px !important;
  width: auto;
  margin: 0 !important;
}



.blob-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
pointer-events: none;
opacity: 0;
transition: none !important;
}
#o-mnie > .blob-canvas,
#skills > .blob-canvas {
transform: translateY(100px);
}
#kontakt {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-top: 250px!important;
}
footer {
padding: 50px 10%;
text-align: center;
}
span {
color: #2d6bff;
font-size: 1.3rem;
font-weight: bold;
font-family: 'Michroma', sans-serif;
}
.modal {
display: none; 
position: fixed;
z-index: 100; 
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.9); 
backdrop-filter: blur(5px);
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #111;
margin: 15px; 
padding: 30px; 
border: 1px solid #333;
width: 90%; 
max-width: 1200px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
border-radius: 12px;
position: relative;
max-height: calc(100vh - 30px); 
overflow-y: hidden; 
}
.modal-container {
display: flex;
gap: 15px; 
align-items: flex-start;
}
.modal-left-image {
width: 400px; 
height: 240px; 
flex: 0 0 auto; 
padding: 5px; 
box-sizing: border-box; 
position: relative; 
overflow: hidden; 
position: relative;
}
#modal-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
border-radius: 8px;
margin: 0; 
object-fit: cover; 
object-position: center;
}
.modal-right-text {
flex: 1; 
min-width: 300px; 
display: flex;
flex-direction: column; 
justify-content: flex-start;
padding: 5px; 
box-sizing: border-box; 
align-items: center; 
}
#modal-description {
font-size: 0.80rem; 
line-height: 1.5; 
margin: 15px 0; 
text-align:justify; 
max-width: 80%; 
}
.modal-button {
background: #2d6bff;
color: #fff;
padding: 12px 25px;
font-size: 1rem;
border-radius: 100px;
transition: 0.3s;
font-family: 'Poppins', sans-serif;
font-weight: 600;
text-align: center;
text-decoration: none;
display: block; 
}
.modal-button:hover {
background: #1a49b8;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}
body.project-background { background: #000000; }
.project-header-minimal {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 50;
padding: 20px;
box-sizing: border-box;
pointer-events: none;
}
.close-btn-page-minimal {
position: absolute;
right: 20px;
top: 20px;
font-size: 3rem;
color: #aaa;
text-decoration: none;
line-height: 0.8;
transition: color 0.3s;
pointer-events: auto;
}
.project-detail-container-minimal {
padding-top: 60px;
padding-bottom: 0;
width: 100%;
box-sizing: border-box;
display: flex;
justify-content: center;
}
.image-box-minimal {
max-width: 1100px;
width: 90%;
margin: 0 auto;
display: flex;
    flex-direction: column;
}
.full-width-image { width: 100%; height: auto; display: block; }
.project-segment {
margin-bottom: 60px;
padding-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.segment-title {
font-family: 'Michroma', sans-serif;
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.6);
display: inline-block;
padding: 7px 8px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 4px;
margin: 0 0 30px 0;
}
footer.footerproject {
padding: 20px 10%;
display: flex;
justify-content: center;
background: #111;
gap: 40vw;
}

.projekty-grid .card {
    background: transparent;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: visible; 
    transform: none !important;
}

.card-visual {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    background: #111;
}

.projekty-grid .card img, 
.placeholder-box {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1); 
}


.projekty-grid .card:hover img {
    transform: scale(1.05); 
}

.card-info {
    padding: 15px 0 5px 0;
    text-align: left; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.card-project-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem; 
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.6;
    position: relative;
    padding-top: 10px; 
    transition: all 0.4s ease;
}

.card-project-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}


.projekty-grid .card:hover .card-project-title {
    opacity: 1;
    color: #2d6bff;
}

.projekty-grid .card:hover .card-project-title::before {
    width: 40px; 
    background-color: #2d6bff;
}

.placeholder-box {
    color: #333;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 1px solid #222;
}
#laboratorium-ai {
    scroll-margin-top: 100px; 
}

.project-segment h1 {
    font-family: 'Michroma', sans-serif;
    color: #2d6bff;
    font-size: 1.5rem;
    margin: 0;
}

.project-segment p {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 5px;
}


.footerproject-modern {
    display: flex;
    justify-content: space-between;
    padding: 0px 0 60px 0;
    max-width: 1000px;
    margin: 0 auto;
    width: 90%;
}

.footerproject-modern a {
    text-decoration: none;
}

.footerproject-modern .segment-title {
    margin: 0;
    cursor: pointer;
    display: inline-block;
}
.footerproject-modern a:hover .segment-title {
    color: #2d6bff;           
    border-color: #2d6bff;    
    box-shadow: 0 0 10px rgba(45, 107, 255, 0.2); 
}
#web-design, 
#grafika-projektowa {
    scroll-margin-top: 120px;
}
.page-header {
    padding: 130px 5% 100px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 10px;
}

.page-header p {
    font-family: 'Poppins', sans-serif;
    color: #a0a0a0; 
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin: 0;
}
.image-box-minimal .project-segment:first-of-type {
    border-top: none;
    padding-top: 0;
}

.masonry-container {
    column-count: 3;
    column-gap: 15px; 
    padding: 20px 2% 100px; 
    max-width: 1400px;
    margin: 0 auto;
    column-fill: balance;
}

.galeria-item {
    display: block; 
    width: 100%;
    margin-bottom: 15px;
    break-inside: avoid; 
    background: #161616;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #222;
    transition: 0.4s ease;
    cursor: pointer;
}

.galeria-item:hover {
    border-color: #2d6bff;
    transform: translateY(-5px);
}

.galeria-item img {
    width: 100%;
    display: block;
    transition: 0.6s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

#slider-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.98);
    justify-content: center; 
    align-items: center;
}

.slider-content {
    position: relative;
    width: 90%; height: 85%;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.slider-content img {
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    background: none; 
    border: none;
    color: #2d6bff;
    font-size: 3rem; 
    cursor: pointer;
    padding: 20px; 
    z-index: 1001;
    transition: 0.3s;
}

.nav-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

#prev-btn { left: 2%; }
#next-btn { right: 2%; }

.close-slider {
    position: absolute; 
    top: 30px; 
    right: 40px;
    color: white; 
    font-size: 3.5rem; 
    cursor: pointer;
    z-index: 1002;
    line-height: 1;
}
.reveal-block {
    opacity: 0;
    transform: translateY(30px) skewY(1deg);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    will-change: transform, opacity;
}

.reveal-block.active {
    opacity: 1;
    transform: translateY(0) skewY(0deg);
}

@media (max-width: 1100px) { 
    .masonry-container { column-count: 2; } 
}

@media (max-width: 700px) { 
    .masonry-container { column-count: 1; }
    .close-slider { top: 10px; right: 20px; }
    .nav-btn { font-size: 2rem; }
}
@media (max-width: 900px) {
.hero h1 { font-size: 6vw; }
.hamburger-menu { display: block; }
.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 20%;
    flex-direction: column;
    background: transparent;
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    align-items: center;
    padding: 0;
    border-radius: 0;
    border: none; 
  }

  .nav-links.open {
    height: 250px; 
    padding: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgb(61, 61, 239, 0.2);
  }
nav a { margin: 10px 0; padding: 10px 0; width: 80%; text-align: center; }
.o-mnie-container { flex-direction: column; }
.o-mnie-container_left, .o-mnie-container_right { min-width: 100%; text-align: center; }
.skills-list { flex-direction: column; max-width: 100%; gap: 20px; }
 .projekty-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));}

 #o-mnie, 
    #projekty, 
    #skills, 
    #kontakt,
    #web-design, 
    #grafika-projektowa, 
    #certyfikaty,
    #laboratorium-ai {
        scroll-margin-top: 70px !important; 
    }
 
}

@media (max-width: 768px) {
.modal-content { width: 95%; padding: 20px; overflow-y: auto; }
.modal-container { flex-direction: column; gap: 0; }
.modal-left-image { width: 100%; height: 0; padding-top: 60%; }
.modal-right-text { min-width: 100%; padding: 0; align-items: center; }
#modal-description { text-align: left; max-width: 95%; font-size: 1rem; }
.image-box-minimal { width: 96%; }
.projekty-grid {grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 600px) {
section { padding: 80px 5%; padding-top: 130px; }
.hero h1 { font-size: 8vw; }
footer.footerproject { flex-direction: column; gap: 10px; }
    .footerproject-modern {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
}
@media (min-width: 1200px) {
.hero h1 {
font-size: 5rem;
}
}
.card-visual {
    position: relative;
    overflow: hidden;
}




.soon-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00aaff;
    font-family: 'Michroma', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
}
.card-visual img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.grid-kwadraty {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.kwadrat {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.kwadrat img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.kwadrat:hover { 
    transform: scale(1.05); 
    border-color: #3d3def; 
}


#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    user-select: none;
}

#lightbox-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 5px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}


.project-segment {
    padding-bottom: 0;
}

.image-box-minimal header.project-segment, 
.image-box-minimal section.project-segment {
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100%;
}

.project-segment h1 {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

@media (max-width: 1024px) {
    .grid-kwadraty { grid-template-columns: repeat(3, 1fr); }
    .nav-btn { width: 45px; height: 45px; }
}
#web-design, 
#grafika-projektowa, 
#laboratorium-ai {
  scroll-margin-top: 100px;
}
@media (max-width: 768px) {
    .skill-card:active, 
    .skill-card:focus {
        background: rgba(45, 107, 255, 0.2) !important;
        border-color: #2d6bff !important;
        transform: scale(0.96); 
        transition: all 0.1s ease;
    }

    .skill-card:active .s-icon {
        filter: drop-shadow(0 0 8px #2d6bff);
        transform: scale(1.1);
    }
}
@media (max-width: 400px) {
  .nav-links {
      width: 100%;
      right: 0;
      left: 0;
      display: none; 
      flex-direction: column;
      align-items: center; 
      justify-content: center; 
      padding: 0;
      height: 0;
      overflow: hidden;
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(10px);
  }

  .nav-links.open {
      display: flex;
      height: auto;
      min-height: 250px;
      padding: 20px 0;
  }

  nav a { 
      width: 100% !important; 
      text-align: center; 
      display: flex;
      justify-content: center;
      padding: 15px 0; 
  }
}
#hero-section-id, .twoja-klasa-banera { 
    position: relative;
    z-index: 10; 
    background: #0000ff;
}

.blob-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
}

#o-mnie {
    position: relative;
    z-index: 6; 
    scroll-behavior: smooth;
}

.o-mnie-container_left {
    flex: 1;
    min-width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;

    overflow: visible;
}

.topo-wrapper {
  
    position: absolute; 
    
    top: -370px; 
    left: 0; 
    transform: translate(-50%, -10%);
    
    width: 1150px; 
    height: 1150px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: -1;
}


.topo-blob {
    position: absolute;
    aspect-ratio: 1;
    clip-path: shape(from 88.42% 40.59%,curve to 90.78% 60.65% with 90.99% 50.00%,curve to 83.84% 80.28% with 90.57% 71.29%,curve to 65.83% 88.35% with 77.11% 89.27%,curve to 44.88% 88.22% with 54.54% 87.43%,curve to 25.54% 84.62% with 35.21% 89.01%,curve to 9.01% 71.01% with 15.88% 80.23%,curve to 7.85% 51.41% with 2.14% 61.80%,curve to 13.24% 29.09% with 13.56% 41.02%,curve to 23.71% 13.13% with 12.92% 17.15%,curve to 44.42% 11.65% with 34.49% 9.10%,curve to 63.18% 16.16% with 54.35% 14.21%,curve to 78.94% 24.64% with 72.01% 18.11%,curve to 88.42% 40.59% with 85.86% 31.18%);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.9;
}


.tb-1 { width: 100%; background: rgba(61, 61, 239, 0.03); transform: rotate(0deg); filter: blur(15px); }
.tb-2 { width: 90%; background: rgba(61, 61, 239, 0.07); transform: rotate(5deg); filter: blur(5px); }
.tb-3 { width: 80%;  background: rgba(61, 61, 239, 0.09); transform: rotate(-4deg); }
.tb-4 { width: 70%;  background: rgba(0, 0, 0, 0.1); transform: rotate(10deg); }
.tb-5 { width: 60%;  background: rgba(0, 0, 0, 0.2); transform: rotate(-6deg); }
.tb-6 { width: 50%;  background: rgba(0, 0, 0, 0.3); transform: rotate(-4deg); }
.tb-7 { width: 40%;  background: rgba(0, 0, 0, 0.4); transform: rotate(5deg); filter: blur(2px); }
.tb-8 { 
    width: 30%; 
    background: #020215; 
    transform: rotate(15deg); 
    box-shadow: inset 0 0 30px rgba(0,0,0,1); 
}


.tb-8 { 
    width: 20%; 
    background: #020215; 
    transform: rotate(15deg); 
    box-shadow: inset 0 0 30px rgba(0,0,0,1); 
}


.topo-wrapper:hover .topo-blob {
    transform: scale(1.05) rotate(2deg);
}

#projekty, #skills {
    position: relative;
    overflow: visible;

}
#projekty{
     z-index: 50;  
}
#skills{
   z-index: 60;
}

.topo-right {
    top: 30% !important; 
    left: auto !important;
    right: -150px !important;
    transform: translate(0, -50%) rotate(15deg) !important;
}

.topo-left {
    top: 0 !important;
    left: -150px !important;
    transform: translate(0, -50%) rotate(-15deg) !important;
}


.topo-alt .topo-blob {
    filter: blur(40px);
    opacity: 0.5;
}

@keyframes topoFloat {
    0% { transform: scale(1) rotate(0deg) translate(0, 0); }
    33% { transform: scale(1.02) rotate(2deg) translate(10px, -10px); }
    66% { transform: scale(0.98) rotate(-1deg) translate(-5px, 15px); }
    100% { transform: scale(1) rotate(0deg) translate(0, 0); }
}

.topo-blob {
    animation: topoFloat 15s ease-in-out infinite;
}

.tb-2 { animation-delay: -2s; }
.tb-4 { animation-delay: -5s; }
.tb-6 { animation-delay: -8s; }
.tb-8 { animation-delay: -11s; }

.topo-right {
top: 13% !important;
right: -350px !important;
left: auto !important;
opacity: 0.75;
transform: scale(0.8, 0.8) rotate(140deg) !important;
}

.topo-right .topo-blob {

border-radius: 40% 60% 30% 70% / 60% 30% 70% 40%;
filter: blur(20px);
}


.topo-left {
top: -50% !important;
left: -150px !important;
opacity: 0.5;
transform: scaleX(-0.9) scaleY(0.9) rotate(-10deg) !important;
}

.topo-left .topo-blob {

border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
opacity: 0.5;
}


.topo-left .topo-blob {
animation-duration: 25s !important;
animation-direction: reverse;
}


.topo-right .topo-blob {
animation-duration: 12s !important;
}

.topo-wrapper, 
.topo-blob, 
.blob-canvas, 
#grid-canvas,
.soon-overlay {
    pointer-events: none !important;
    z-index: 5;
}


.o-mnie-container_right, 
.hero .content, 
.skills-grid, 
.projekty-grid,
section h2,
.animate-me,
.scatter-text {
    position: relative;
    z-index: 100 !important;
    pointer-events: auto;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

