:root {
    /*strona glowna - portfolio*/
    --max-width: 1400px;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;

     /*kolory dla tej strony*/
    --primary-color: #000000;       /* główny kolor */
    --secondary-color: #3498db;     /* drugi kolor */
    --text-1: #000000;           /* jasny tekst */
    --text-2: #2c3e50;           /* ciemny tekst */
    --bg-color: #ffffff;            /* kolor tła */
    --header-color: #ffffff;            /* kolor headera */

    /*szarosci*/
    --bialy: #ffffff;
    --ciemnoszary: #0D0D0D;
    --czarny: #000000;

    /*frutiger-aero-blue*/
    --blue0: #fceef0;           /* blue 0-4 gdzie 0 to bialy */
    --blue1: #9af0f0;           /* blue 0-4 gdzie 0 to bialy */
    --blue2: #60bcd1;           /* blue 0-4 gdzie 0 to bialy */
    --blue3: #36bbde;           /* blue 0-4 gdzie 0 to bialy */
    --blue4: #0f9ac6;           /* blue 0-4 gdzie 0 to bialy */

    /*frutiger-aero*/
    --frut0: #f6673e;           /* pomarancz */
    --frut1: #f3cf5e;           /* zolty */
    --frut2: #03c4c7;           /* jasniniebieski */
    --frut3: #02b2ab;           /* zielonkawy */
    --frut4: #0092d8;           /* niebieski */

}

/* ====================== BASE ====================== */
body {
    font-family: 'Ubuntu Mono', monospace;
    background: var(--bg-color);
    color: var(--primary-color);
    margin: 0;
    line-height: 1.5;
}

/* warstwa z gwiazdami */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/imgs/stars.gif");
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* ====================== HEADER ====================== */
/* --- Podstawowe style headera --- */
.portfolio-header {
    background-color: var(--header-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.portfolio-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo (Twoje imię/nazwa) --- */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-1);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color var(--transition-speed) ease;
}

.logo:hover {
    color: var(--secondary-color);
}

/* --- Menu nawigacyjne (desktop) --- */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-1);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Hamburger menu (mobile) --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

/* --- Responsywnosc (mobile) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-container {
        padding: 15px 20px;
    }

    /* --- Aktywne menu mobile --- */
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 4px 10px var(--shadow-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 10px;
        width: 100%;
    }

    /* --- Animacja hamburgera --- */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

