/* ==================== CZCIONKA ==================== */ 

@font-face { 
    font-family: "Inter"; 
    src: url("fonts/intervariable.woff2") format("woff2"); 
    font-weight: 100 900; 
    font-style: normal; 
    font-display: swap; 
}


/* ==================== RESET ==================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ==================== CAŁA STRONA ==================== */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1f1f1f;
    color: #d2d2d2;
    font-family: "Inter", sans-serif;
}


/* ==================== MENU ==================== */

nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 40px;

    padding: 20px;

    background-color: rgba(10, 10, 10, 0.8);

    z-index: 1000;
}


/* ==================== LINKI ==================== */

a {
    color: white;
    text-decoration: none;
}


/* ==================== SEKCJE ==================== */

section {
    min-height: 100vh;
    padding: 120px 10%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


/* ==================== ZDJĘCIA ==================== */

img,
video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}


/* ================================================== */
/* ==================== HERO ======================== */
/* ================================================== */

#o-mnie {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 120px 10% 60px;
}


/* ==================== GŁÓWNY KONTENER HERO ======= */

.hero-content {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 80px;

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* ==================== TEKST HERO ================= */

.hero-text {
    flex: 1;
}


.hero-subtitle {
    margin-bottom: 25px;

    font-size: 14px;
    letter-spacing: 4px;

    color: #888;
}


.hero-text h1 {
    font-size: clamp(60px, 8vw, 130px);
    line-height: 0.9;

    letter-spacing: -5px;

    margin-bottom: 40px;
}


.hero-description {
    max-width: 550px;

    font-size: 20px;
    line-height: 1.6;

    color: #aaa;
}


/* ==================== ZDJĘCIE HERO =============== */

.hero-image {
    flex: 0 0 400px;
}


.hero-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* ==================== SCROLL ===================== */

.scroll-indicator {
    margin-top: 70px;

    text-align: center;

    font-size: 12px;
    letter-spacing: 4px;

    color: #666;
}


/* ================================================== */
/* ==================== ZWYKŁE SEKCJE ============== */
/* ================================================== */

/*
    Struktura:

    section
        └── section-content
            ├── section-text
            └── section-image
*/

.section-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 80px;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


/* ==================== TEKST SEKCJI =============== */

.section-text {
    flex: 1;
}


.section-text h1 {
    margin-bottom: 30px;

    font-size: clamp(50px, 6vw, 90px);
    line-height: 1;

    letter-spacing: -3px;
}


.section-text p {
    max-width: 600px;

    font-size: 20px;
    line-height: 1.6;
}


/* ==================== ZDJĘCIE SEKCJI ============= */

.section-image {
    flex: 0 0 400px;
}


.section-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* ================================================== */
/* ==================== PROJEKTY =================== */
/* ================================================== */

/*
    Struktura:

    projects-list
        ├── project
        │   └── project-content
        │       ├── project-media
        │       └── project-info
        │
        ├── project
        └── ...
*/

.projects-list {
    display: flex;

    flex-direction: column;

    gap: 0px;

    width: 100%;
    max-width: 1400px;

    margin: 100px auto 0;
}


/* ==================== ZAWARTOŚĆ PROJEKTU ========= */

.project-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 80px;
}


/* ==================== MEDIA PROJEKTU ============= */

.project-media {
    flex: 0 0 50%;
}


/* Obraz i film */

.project-media img,
.project-media video {
    display: block;

    width: 100%;
    height: auto;
}


/* ==================== INFORMACJE PROJEKTU ======== */

.project-info {
    flex: 1;
}


.project-info h2 {
    margin-bottom: 25px;

    font-size: clamp(30px, 4vw, 60px);
    line-height: 1.1;
}


.project-info p {
    margin-bottom: 15px;

    font-size: 18px;
    line-height: 1.6;

    color: #aaa;
}


.project-date {
    font-size: 12px;
    letter-spacing: 3px;
    color: #777;
}


.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 25px;
}


.project-tags span {
    padding: 6px 12px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    font-size: 12px;
    letter-spacing: 1px;

    color: #aaa;
}


/* ==================== SEPARATORY PROJEKTÓW ==================== */

.project {
    position: relative;
    width: 100%;
    padding-bottom: 60px;
}


.project::after {
    content: "";

    display: block;

    width: 100%;
    height: 1px;

    margin: 60px auto 0;

    background-color: rgba(255, 255, 255, 0.06);
}


/* ================================================== */
/* ==================== UMIEJĘTNOŚCI ============== */
/* ================================================== */

.skills-content {
    width: 100%;
    max-width: 1400px;

    margin: 80px auto 0;
}


.skills-content p {
    max-width: 1100px;

    font-size: 20px;
    line-height: 1.8;
}


/* ================================================== */
/* ==================== KONTAKT ==================== */
/* ================================================== */

#kontakt .section-text h2 {
    margin-top: 35px;
    margin-bottom: 10px;

    font-size: 24px;
}


#kontakt .section-text p {
    margin-bottom: 15px;
}


/* ================================================== */
/* ==================== STOPKA ===================== */
/* ================================================== */

footer {
    padding: 40px 10%;

    text-align: center;

    color: #666;
}

/* ================================================== */
/* ==================== TELEFON ==================== */
/* ================================================== */

@media (max-width: 768px) {

    /* ==================== MENU ==================== */

    nav {
        gap: 15px;
        padding: 15px 10px;
    }

    nav a {
        font-size: 12px;
    }


    /* ==================== SEKCJE ================= */

    section {
        padding: 100px 20px;
    }


    /* ==================== HERO =================== */

    #o-mnie {
        padding: 100px 20px 50px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: clamp(50px, 12vw, 80px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }


    /* ==================== ZWYKŁE SEKCJE ======== */

    .section-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-text h1 {
        font-size: clamp(45px, 11vw, 70px);
    }

    .section-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }


    /* ==================== PROJEKTY ============== */

    .project-content {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .project-media {
        flex: none;
        width: 100%;
    }

    .project-info h2 {
        font-size: 30px;
    }

}
