/* =====================================
   PORTFOLIO OLIWIA RUSINEK
   DARK MODERN STYLE
===================================== */


/* KOLORY */

:root{

--blue:#38bdf8;

--purple:#a855f7;

--pink:#ec4899;

--dark:#020617;

--dark2:#0f172a;

--card:#111827;

--card-light:#1e293b;

--text:#f8fafc;

--gray:#cbd5e1;

--shadow:
0 20px 50px rgba(0,0,0,.45);

--radius:22px;

}



/* RESET */


*{

margin:0;

padding:0;

box-sizing:border-box;

}



html{

scroll-behavior:smooth;

}



body{

font-family:'Poppins',sans-serif;

background:

linear-gradient(
135deg,
#020617,
#111827
);

color:var(--text);

line-height:1.7;

}





/* =====================================
   HERO
===================================== */


header{

min-height:90vh;

display:flex;

align-items:center;

justify-content:center;

text-align:center;

padding:40px 20px;

background:

linear-gradient(
135deg,
#020617,
#1e1b4b,
#0f172a
);

}





.hero{

max-width:900px;

}





.hero-badge{

display:inline-block;

padding:10px 25px;

border-radius:50px;

background:

rgba(56,189,248,.15);

border:

1px solid rgba(56,189,248,.4);

margin-bottom:25px;

animation:fadeDown 1s;

}





.hero h1{

font-size:65px;

font-weight:800;

background:

linear-gradient(
90deg,
#38bdf8,
#a855f7
);

-webkit-background-clip:text;

color:transparent;

animation:fadeUp 1s;

}





.hero h2{

font-size:26px;

margin:20px 0;

color:white;

animation:fadeUp 1.2s;

}





.hero p{

font-size:18px;

color:var(--gray);

max-width:700px;

margin:auto;

animation:fadeUp 1.4s;

}





.hero-buttons{

margin-top:35px;

display:flex;

justify-content:center;

gap:20px;

flex-wrap:wrap;

}





/* =====================================
   PRZYCISKI
===================================== */


.button{

display:inline-block;

padding:14px 35px;

border-radius:50px;

background:

linear-gradient(
135deg,
var(--blue),
var(--purple)
);

color:white;

text-decoration:none;

font-weight:700;

transition:.4s;

box-shadow:

0 10px 30px rgba(56,189,248,.3);

}





.button:hover{

transform:

translateY(-6px) scale(1.03);

}





.second-button{

background:

transparent;

border:

2px solid var(--blue);

}





/* =====================================
   MENU
===================================== */


nav{

position:sticky;

top:0;

z-index:999;

background:

rgba(2,6,23,.9);

backdrop-filter:blur(15px);

padding:18px;

text-align:center;

border-bottom:

1px solid rgba(255,255,255,.1);

}





nav a{

color:white;

text-decoration:none;

margin:0 18px;

font-weight:600;

transition:.3s;

}





nav a:hover{

color:var(--blue);

}

/* =====================================
   SEKCJE
===================================== */


section{

width:90%;

max-width:1200px;

margin:auto;

padding:90px 0;

}




section h2{

text-align:center;

font-size:40px;

margin-bottom:45px;

background:

linear-gradient(
90deg,
var(--blue),
var(--purple)
);

-webkit-background-clip:text;

color:transparent;

font-weight:800;

}





.section-description{

text-align:center;

max-width:800px;

margin:

-20px auto 50px;

color:var(--gray);

font-size:18px;

}





/* =====================================
   LICZNIKI
===================================== */


.stats{

width:90%;

max-width:1200px;

margin:50px auto;

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(220px,1fr));

gap:25px;

}





.stat{

background:

linear-gradient(
145deg,
#111827,
#0f172a
);

padding:35px;

border-radius:var(--radius);

text-align:center;

box-shadow:var(--shadow);

border:

1px solid rgba(255,255,255,.08);

animation:fadeUp .8s;

transition:.4s;

}





.stat:hover{

transform:

translateY(-10px);

border-color:var(--blue);

}





.stat h2{

font-size:45px;

margin:0;

color:var(--blue);

}





.stat p{

color:var(--gray);

font-weight:600;

}





/* =====================================
   O MNIE
===================================== */


.about-container{

display:grid;

grid-template-columns:

1fr 1fr;

gap:40px;

}





.about-text{

font-size:18px;

color:var(--gray);

}





.about-text p{

margin-bottom:20px;

}





.about-info{

display:grid;

gap:20px;

}





.info-box{

background:

linear-gradient(
145deg,
#111827,
#0f172a
);

padding:25px;

border-radius:var(--radius);

box-shadow:var(--shadow);

border:

1px solid rgba(255,255,255,.08);

transition:.4s;

}





.info-box:hover{

transform:

translateY(-8px);

border-color:var(--purple);

}





.info-box h3{

color:var(--blue);

margin-bottom:10px;

}





/* =====================================
   UMIEJĘTNOŚCI
===================================== */


.cards{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(260px,1fr));

gap:25px;

}





.card{

background:

linear-gradient(
145deg,
#111827,
#0f172a
);

padding:30px;

border-radius:var(--radius);

text-align:center;

box-shadow:var(--shadow);

border:

1px solid rgba(255,255,255,.08);

transition:.4s;

animation:fadeUp .8s;

}





.card:hover{

transform:

translateY(-12px);

border-color:var(--blue);

}





.skill-icon{

font-size:45px;

margin-bottom:15px;

}





.card h3{

font-size:22px;

margin-bottom:10px;

}





.card p{

color:var(--gray);

font-size:15px;

}





/* =====================================
   PASKI UMIEJĘTNOŚCI
===================================== */


.skill-bar{

height:10px;

background:#020617;

border-radius:20px;

margin-top:20px;

overflow:hidden;

}





.skill-level{

height:100%;

background:

linear-gradient(
90deg,
var(--blue),
var(--purple)
);

border-radius:20px;

animation:

skillAnimation 2s ease;

}




@keyframes skillAnimation{


from{

width:0;

}


}

/* =====================================
   DOŚWIADCZENIE
===================================== */


.timeline{

display:grid;

gap:25px;

}





.timeline-item{

background:

linear-gradient(
145deg,
#111827,
#0f172a
);

padding:35px;

border-radius:var(--radius);

box-shadow:var(--shadow);

border-left:

5px solid var(--purple);

transition:.4s;

animation:fadeUp .8s;

}





.timeline-item:hover{

transform:

translateX(10px);

border-left-color:var(--blue);

}





.timeline-item h3{

color:var(--blue);

font-size:25px;

}





.timeline-item span{

display:block;

color:var(--purple);

font-weight:700;

margin:10px 0;

}





.timeline-item p{

color:var(--gray);

}






/* =====================================
   PROJEKTY
===================================== */


.project{

background:

linear-gradient(
145deg,
#111827,
#0f172a
);

padding:35px;

border-radius:var(--radius);

margin-bottom:45px;

box-shadow:var(--shadow);

border:

1px solid rgba(255,255,255,.08);

transition:.5s;

animation:fadeUp .8s;

}





.project:hover{

transform:

translateY(-10px);

border-color:

var(--blue);

}





.project-header{

display:flex;

justify-content:space-between;

align-items:center;

gap:20px;

flex-wrap:wrap;

margin-bottom:20px;

}





.project h3{

font-size:27px;

color:var(--blue);

}





.project p{

color:var(--gray);

font-size:17px;

}





/* =====================================
   TECHNOLOGIE PROJEKTÓW
===================================== */


.tech-stack{

display:flex;

gap:10px;

flex-wrap:wrap;

}





.tech-stack span{

background:

linear-gradient(
135deg,
var(--blue),
var(--purple)
);

padding:7px 16px;

border-radius:50px;

font-size:13px;

font-weight:700;

color:white;

box-shadow:

0 5px 15px rgba(168,85,247,.3);

transition:.3s;

}





.tech-stack span:hover{

transform:

scale(1.1);

}





/* =====================================
   GALERIA
===================================== */


.gallery{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(250px,1fr));

gap:25px;

margin-top:30px;

}





.gallery-item{

background:#020617;

border-radius:18px;

overflow:hidden;

box-shadow:

0 10px 25px rgba(0,0,0,.4);

transition:.4s;

}





.gallery-item:hover{

transform:

translateY(-8px);

}





.gallery-item img{

    width:100%;

    height:260px;

    object-fit:contain;

    display:block;

    padding:10px;

    background:#020617;

    transition:.5s;

    cursor:zoom-in;

}




.gallery-item:hover img{

transform:scale(1.04);

}




.gallery-item p{

padding:15px;

text-align:center;

font-weight:700;

color:white;

}





/* =====================================
   VIDEO JAVA
===================================== */


.video-container{

margin-top:30px;

border-radius:20px;

overflow:hidden;

box-shadow:

0 15px 40px rgba(0,0,0,.5);

}





.video-container video{

width:100%;

display:block;

}





/* =====================================
   EFEKT POWIĘKSZENIA ZDJĘĆ
===================================== */


.gallery-item{

position:relative;

}





.gallery-item::after{

content:"🔍";

position:absolute;

top:15px;

right:15px;

background:

rgba(0,0,0,.6);

padding:8px;

border-radius:50%;

opacity:0;

transition:.3s;

}





.gallery-item:hover::after{

opacity:1;

}

/* =====================================
   LIGHTBOX - POWIĘKSZENIE ZDJĘCIA
===================================== */

.lightbox{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.94);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:40px;

    z-index:99999;

    opacity:0;

    visibility:hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;

    cursor:zoom-out;

}


/* OTWARTE ZDJĘCIE */

.lightbox.active{

    opacity:1;

    visibility:visible;

}


/* DUŻE ZDJĘCIE */

.lightbox img{

    max-width:95vw;

    max-height:90vh;

    width:auto;

    height:auto;

    object-fit:contain;

    border-radius:15px;

    box-shadow:
        0 20px 80px rgba(0,0,0,.8);

    transform:scale(.85);

    transition:transform .3s ease;

    cursor:default;

}


.lightbox.active img{

    transform:scale(1);

}


/* PRZYCISK X */

.lightbox-close{

    position:absolute;

    top:20px;

    right:30px;

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.1);

    color:white;

    font-size:36px;

    line-height:1;

    cursor:pointer;

    z-index:2;

    transition:
        background .3s ease,
        transform .3s ease;

}


.lightbox-close:hover{

    background:rgba(168,85,247,.7);

    transform:rotate(90deg);

}


/* BLOKADA PRZEWIJANIA STRONY */

body.lightbox-open{

    overflow:hidden;

}

/* =====================================
   LIGHTBOX - POWIĘKSZENIE ZDJĘCIA
===================================== */

.lightbox{

    position:fixed;

    inset:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.94);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:40px;

    z-index:99999;

    opacity:0;

    visibility:hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;

    cursor:zoom-out;

}


/* OTWARTE ZDJĘCIE */

.lightbox.active{

    opacity:1;

    visibility:visible;

}


/* DUŻE ZDJĘCIE */

.lightbox img{

    max-width:95vw;

    max-height:90vh;

    width:auto;

    height:auto;

    object-fit:contain;

    border-radius:15px;

    box-shadow:

        0 20px 80px rgba(0,0,0,.8);

    transform:scale(.85);

    transition:transform .3s ease;

    cursor:default;

}


.lightbox.active img{

    transform:scale(1);

}


/* PRZYCISK X */

.lightbox-close{

    position:absolute;

    top:20px;

    right:30px;

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.1);

    color:white;

    font-size:36px;

    line-height:1;

    cursor:pointer;

    z-index:2;

    transition:

        background .3s ease,

        transform .3s ease;

}


.lightbox-close:hover{

    background:rgba(168,85,247,.7);

    transform:rotate(90deg);

}


/* BLOKADA PRZEWIJANIA STRONY */

body.lightbox-open{

    overflow:hidden;

}

/* =====================================
   KONTAKT
===================================== */


#contact{

text-align:center;

}





.contact-container{

display:grid;

grid-template-columns:

repeat(auto-fit,minmax(250px,1fr));

gap:25px;

}





.contact-card{

background:

linear-gradient(
145deg,
#111827,
#0f172a
);

padding:35px;

border-radius:var(--radius);

box-shadow:var(--shadow);

border:

1px solid rgba(255,255,255,.08);

transition:.4s;

animation:fadeUp .8s;

}





.contact-card:hover{

transform:

translateY(-10px);

border-color:

var(--purple);

}





.contact-icon{

font-size:45px;

margin-bottom:15px;

}





.contact-card h3{

color:var(--blue);

margin-bottom:15px;

}





.contact-card a{

color:var(--purple);

text-decoration:none;

font-weight:700;

}





.contact-card a:hover{

color:var(--blue);

}







.contact-buttons{

margin-top:40px;

}






/* =====================================
   STOPKA
===================================== */


footer{

background:

linear-gradient(
135deg,
#020617,
#111827
);

padding:50px 20px;

text-align:center;

margin-top:60px;

border-top:

1px solid rgba(255,255,255,.1);

}





.footer-content h3{

font-size:30px;

background:

linear-gradient(
90deg,
var(--blue),
var(--purple)
);

-webkit-background-clip:text;

color:transparent;

}





.footer-content p{

color:var(--gray);

margin:10px;

}





footer hr{

width:80%;

margin:25px auto;

border:none;

height:1px;

background:

rgba(255,255,255,.2);

}





/* =====================================
   ANIMACJE
===================================== */


@keyframes fadeUp{


from{

opacity:0;

transform:

translateY(50px);

}


to{

opacity:1;

transform:

translateY(0);

}


}





@keyframes fadeDown{


from{

opacity:0;

transform:

translateY(-40px);

}


to{

opacity:1;

transform:

translateY(0);

}


}







/* =====================================
   EFEKT POJAWIANIA
===================================== */


section{

animation:

fadeUp .8s ease;

}






/* =====================================
   EFEKTY PRZYCISKÓW
===================================== */


.button{

position:relative;

overflow:hidden;

}





.button::before{

content:"";

position:absolute;

top:0;

left:-120%;

width:100%;

height:100%;

background:

rgba(255,255,255,.25);

transform:

skewX(-20deg);

transition:.5s;

}





.button:hover::before{

left:120%;

}





/* =====================================
   ZAZNACZENIE TEKSTU
===================================== */


::selection{

background:

var(--purple);

color:white;

}





/* =====================================
   PASEK PRZEWIJANIA
===================================== */


::-webkit-scrollbar{

width:12px;

}




::-webkit-scrollbar-track{

background:#020617;

}





::-webkit-scrollbar-thumb{

background:

linear-gradient(
var(--blue),
var(--purple)
);

border-radius:20px;

}

/* =====================================
   TABLET
===================================== */


@media(max-width:1000px){



.hero h1{

font-size:50px;

}



.hero h2{

font-size:22px;

}





.about-container{

grid-template-columns:1fr;

}





.project-header{

flex-direction:column;

align-items:flex-start;

}





}




/* =====================================
   TELEFON
===================================== */


@media(max-width:768px){



section{

width:92%;

padding:60px 0;

}






.hero{

padding:20px;

}





.hero h1{

font-size:38px;

}





.hero h2{

font-size:18px;

}





.hero p{

font-size:16px;

}





.hero-buttons{

flex-direction:column;

align-items:center;

}





.button{

width:90%;

max-width:320px;

}







nav{

padding:15px 5px;

}





nav a{

display:inline-block;

margin:8px;

font-size:14px;

}






.stats{

grid-template-columns:

1fr;

}





.stat h2{

font-size:38px;

}





section h2{

font-size:32px;

}







.cards{

grid-template-columns:1fr;

}






.card{

padding:25px;

}






.project{

padding:25px 18px;

}





.project h3{

font-size:22px;

}





.project p{

font-size:15px;

}







.tech-stack span{

font-size:12px;

padding:6px 12px;

}






.gallery{

grid-template-columns:1fr;

}





.gallery-item img{

height:230px;

}







.contact-container{

grid-template-columns:1fr;

}






footer{

padding:40px 15px;

}





}

/* =====================================
   FINALNE POPRAWKI PORTFOLIO
===================================== */



/* Wszystkie elementy widoczne */

.project,
.card,
.stat,
.timeline-item,
.contact-card,
.info-box,
.gallery-item{

opacity:1;

visibility:visible;

}




/* Jeżeli HTML posiada klasę reveal
   - nie chowamy elementów */

.reveal{

opacity:1;

transform:none;

visibility:visible;

}






/* =====================================
   LEPSZY WYGLĄD KART
===================================== */


.project,
.card,
.stat,
.contact-card,
.info-box{

position:relative;

overflow:hidden;

}





.project::before,
.card::before,
.stat::before,
.contact-card::before{

content:"";

position:absolute;

top:0;

left:0;

width:100%;

height:3px;

background:

linear-gradient(
90deg,
var(--blue),
var(--purple),
var(--pink)
);

transform:

scaleX(0);

transition:.5s;

}





.project:hover::before,
.card:hover::before,
.stat:hover::before,
.contact-card:hover::before{

transform:

scaleX(1);

}






/* =====================================
   ZDJĘCIA
===================================== */


.gallery-item img{

user-select:none;

}





.gallery-item{

cursor:pointer;

}





.gallery-item:hover{

box-shadow:

0 20px 45px rgba(56,189,248,.25);

}







/* =====================================
   LEPSZY TEKST PROJEKTÓW
===================================== */


.project strong{

color:var(--blue);

}




.project p{

line-height:1.8;

}





/* =====================================
   ANIMACJA WEJŚCIA HERO
===================================== */


.hero .button{

animation:

fadeUp 1.6s;

}





/* =====================================
   PŁYNNE PRZEJŚCIA
===================================== */


*{

transition-property:

background-color,
border-color,
transform,
box-shadow;

}





/* wyjątek dla tekstu */

p,
h1,
h2,
h3,
a{

transition:none;

}







/* =====================================
   OCHRONA PRZED UKRYCIEM
===================================== */


body{

overflow-x:hidden;

}




img,
video{

max-width:100%;

}






/* =====================================
   KONIEC CSS
===================================== */