* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 200%;
}

body {
    background-color: White;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

img {
    width: 200px;
    height: auto;
}

.naglowek {
    text-align: center;
    padding: 5% 2% 2% 2%;
    word-spacing: 20px;
    letter-spacing: 2px;
    background-color: #F5F5F7;
}

section {
    margin: 1% 0;
    padding: 5% 10%;
    text-align: center;
    background-color: #F5F5F7;
}

nav {
    font-size: 400;

    display: flex;
    position: fixed; 
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    
    height: 88px;
    width: max-content;
    z-index: 1000;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 4px 12px rgba(255, 255, 255, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.15);
    margin: 0;
    
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    word-spacing: 30%;
    
    scrollbar-width: none; 

    padding: 0 20px;
    border-radius: 50px;

    nav {
    /* ... zachowaj wszystkie swoje dotychczasowe style Docka (display, position itd.) ... */

    /* Definiujemy domyślne pozycje światła (na środku) */
    --x: 50%;
    --y: 50%;

    /* Nowe, dynamiczne tło: delikatne białe światło o promieniu 120px podążające za myszką */
    background: radial-gradient(
        120px circle at var(--x) var(--y),
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    ), 
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    
    background-color: rgba(20, 20, 20, 0.05); /* Delikatna baza, żeby szkło było widać przed najechaniem */
    
    /* Płynne przejście, żeby poświata nie skakała ostro */
    transition: background 0.1s ease; 
}
}

nav a:first-child {
    padding-left: 20px;
}

nav a:last-child {
    padding-right: 20px;
}

nav::-webkit-scrollbar {
    display: none;
}

nav a {
    padding: 0 15px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    nav {
        justify-content: center;
        overflow-x: visible;
        position: fixed; 
    }
}

a {
    text-decoration: none;
    color: black;
    padding: 0 3%;
    font-weight: bold;
}

#zgranie-danych {
    background-color: #EADFD8;
}

h1 {
    font-size: 320%;
}

footer {
    text-align: center;
    padding: 2%;
    color: rgb(94, 94, 94);
    font-size: 0.9rem;
}

.link {
    display: block;
    border-radius: 40px;
    color: rgb(0, 130, 255);
    border: solid 1px rgb(0, 130, 255);
    background-color: white;
    padding: 2%;
    margin-top: 2%;
    transform: scale(1);
    transition: transform 0.3s ease-out, background-color 0.3s ease, color 0.3s ease;
    transform-origin: center center;
    margin-left: 10%;
    margin-right: 10%;
}

.link:hover {
    transform: scale(1.2);
    background-color: rgb(0, 130, 255);
    color: white;
}

ul {
    list-style-type: none;
    line-height: 160%;
}

.link2 {
    display: inline-block;
    transition: all 0.3s ease-in-out;
    
    color: #1d1d1f;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6); 
}

.link2:hover {
    display: inline-block;
    color: rgb(96, 96, 96);
}

.portfolio-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    padding: 50px;
    flex-wrap: wrap;
}

.portfolio-card {
    width: 350px;
    height: 450px;
    backdrop-filter: blur(50px);
    border-bottom: solid rgba(255, 255, 255, 0.4);
    border-right: solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    align-items: flex-end; 
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.portfolio-card.serwis {
        background: url(portfolio-grafika/po-pasta2.jpeg); 
            background-size: cover;
}

.portfolio-card.grafika {
        background: url(portfolio-grafika/logo-mac-latest.png); 
            background-size: cover;
            background-position: center;
}

.portfolio-card.web {
    background: url(ikony/web-icon2.png); 
        background-size: cover;
        background-position: center;
}

.portfolio-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-content {
    z-index: 2;
    transition: transform 0.4s ease;
    width: 100%;
    text-align: center;
}


.btn-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: white;
    color: black;
    border-radius: 50px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .btn-more {
    opacity: 1;
    transform: translateY(0);
}

.btn-more:hover {
    background-color: rgb(0, 130, 255);
    color: white;
}

.img1 {
    margin: 2%;
    border-radius: 5px;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.img1:hover {
    transform: scale(1.1);
}

/* Kontener podpowiedzi */
.tooltip {
    position: relative;
    display: inline-block;
    color: #0082ff;
    cursor: help;
    border-bottom: 1px dashed #0082ff;
}

.tooltiptext {
    visibility: hidden;
    width: 180px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: black;
    text-align: left;
    border-radius: 12px;
    padding: 15px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    margin-left: -90px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: normal;
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.3) transparent transparent transparent;
}

/* Pokazywanie po najechaniu */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* --- dlak komórek i tabletów --- */

@media (max-width: 768px) {

    h1 {
        font-size: 200%; 
        line-height: 120%;
    }
    
    nav a {
        font-size: 12px;
        padding: 5px 10px;
    }

    section {
        padding: 10% 5%; 
    }

    .naglowek {
        padding-top: 5%; 
        word-spacing: 5px;
    }

    .portfolio-container {
        padding: 20px 10px;
        gap: 20px;
    }

    .portfolio-card {
        width: 100%; 
        max-width: 320px; 
        height: 350px; 
    }

    .link {
        margin-left: 5%;
        margin-right: 5%;
        padding: 15px; 
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .portfolio-card:hover {
        transform: none;
    }
    
    .btn-more {
        opacity: 1;
        transform: translateY(0);
    }

    section {
        float: none !important;  /* Wyłączamy pływanie */
        width: 100% !important; /* Każda sekcja zajmuje całą szerokość */
        margin: 1% 0 1% 0 !important; /* Spójne marginesy */
        display: block !important;
        clear: both;
    }

    section h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
}






/* sekcja liquid glass */

.liquid-glass {
    /* Domyślna pozycja światła na środku elementu */
    --x: 50%;
    --y: 50%;

    /* Miks dynamicznej latarki radialnej z Twoim klasycznym gradientem */
    background: radial-gradient(
        180px circle at var(--x) var(--y),
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    ),
    linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    
    border: solid 1px rgba(255, 255, 255, 0.5);
    box-shadow: 
        inset 0 8px 16px rgba(255, 255, 255, 0.4),  /* Wewnętrzny blask od góry */
        inset 0 -8px 16px rgba(0, 0, 0, 0.05),     /* Wewnętrzny cień od dołu */
        0 16px 32px rgba(0, 0, 0, 0.15); 
        
    border-radius: 50px;
    padding: 3%;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    
    /* Płynna animacja poświaty bez zamulania przeglądarki */
    transition: background 0.05s linear, transform 0.3s ease;
    
    /* Zapewnia, że efekt nie wyjdzie poza zaokrąglone brzegi */
    position: relative;
    overflow: hidden;
}