body {
margin: 0;
font-family: 'Inter', sans-serif;
background: #000;
color: #ffffff;
scroll-behavior: smooth;
}
nav {
position: fixed;
top: 0;
width: 100%;
background: rgba(0, 0, 0, 0.9);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 20;
padding: 0 10%;
box-sizing: border-box;
}
.logo-portfolio {
color: #fff;
font-family: 'Poppins', sans-serif;
font-size: 1.5rem;
padding: 15px 0;
font-weight: 800;
letter-spacing: 1px;
}
.nav-links {
display: flex;
justify-content: flex-end;
}
nav a {
color: #fff;
margin: 0 0 0 20px;
text-decoration: none;
padding: 15px 0;
display: inline-block;
transition: color 0.3s;
font-family: 'Poppins', sans-serif;
font-weight: 500;
}
nav a:hover {
color: #2d6bff;
}
.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: 100px 10%;
box-sizing: border-box;
position: relative;
z-index: 10;
padding-top: 150px;
}
#logo, #o-mnie,
#projekty,
#skills,
#kontakt {
cursor: pointer;
pointer-events: auto; 
}
section h2 {
font-size: 2rem;
text-align: center;
font-family: 'Poppins', sans-serif;
font-weight: 700;
margin-top: -50px;
}
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;
}
.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: 6px;
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;
}
.o-mnie-container_right p {
margin: 0;
font-size: 1.2rem;
}
.projekty-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 20px;
justify-content: center;
width: 100%;
}
#projekty h3 {
font-family: 'Poppins', 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;
}
.projekty-grid .card:hover {
transform: translateY(-5px);
}
.projekty-grid .card img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
#skills {
width: 100%;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}
.skills-list {
width: 100%;
max-width: 600px;
margin-left: 0;
margin-right: auto;
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 40px;
text-align: left;
}
.skill-column {
flex: 1;
min-width: 250px;
}
.skills-list ul {
list-style: none;
padding: 0;
text-align: left;
}
.skills-list li {
margin-bottom: 8px;
background: none;
padding: 5px 0 5px 10px;
border-radius: 0;
display: block;
font-size: 1.1rem;
cursor: pointer;
border-left: 3px solid #333;
transition: border-left-color 0.3s, color 0.3s;
}
.skills-list li:hover {
border-left: 3px solid #2d6bff;
color: #2d6bff;
}
.blob-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
opacity: 0;
transition: opacity 0.5s ease-out;
}
#o-mnie > .blob-canvas,
#skills > .blob-canvas {
transform: translateY(100px);
}
#kontakt {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
footer {
padding: 50px 10%;
text-align: center;
}
span {
color: #2d6bff;
font-size: 1.3rem;
font-weight: bold;
}
.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: 6px;
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: #1a1a1a; }
.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;
}
@media (max-width: 1024px) {
.hero h1 { font-size: 6vw; }
.hamburger-menu { display: block; }
.nav-links {
position: absolute;
top: 100%;
left: 0;
width: 100%;
flex-direction: column;
background: rgba(0, 0, 0, 0.95);
height: 0;
overflow: hidden;
transition: height 0.3s ease-in-out;
align-items: center;
padding: 0;
}
.nav-links.open { height: 250px; padding: 20px 0; }
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));}
}

@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;
}