/*
    PLIK: assets/css/style.css

    Nikodem, ten plik odpowiada za wygląd strony.
    Tutaj ustawiamy kolory, układ, odstępy, tła, karty, przyciski i responsywność.
*/

/* Zmienne CSS. Dzięki nim najważniejsze kolory są w jednym miejscu. */
:root {
    --bg: #05070a;
    --panel: #0b0f14;
    --text: #f7f4ec;
    --muted: #a9afba;
    --gold: #d9a64a;
    --gold-light: #ffd37b;
    --line: rgba(255,255,255,.12);
}

/* box-sizing ułatwia liczenie szerokości elementów. */
* {
    box-sizing: border-box;
}

/* Płynne przewijanie po kliknięciu w link menu. */
html {
    scroll-behavior: smooth;
}

/* Podstawowe ustawienia strony. */
body {
    margin: 0;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 76% 12%, rgba(217,166,74,.16), transparent 28%),
        linear-gradient(180deg, #05070a 0%, #06090e 48%, #05070a 100%);
}

/* Lewy pasek boczny. */
.left-rail {
    position: fixed;
    left: 0;
    top: 0;
    width: 88px;
    height: 100vh;
    padding: 26px 0;
    border-right: 1px solid var(--line);
    background: rgba(5,7,10,.76);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}

/* Logo NS. */
.logo {
    color: var(--gold);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -3px;
}

/* Menu ikon po lewej stronie. */
.rail-nav {
    margin-top: 82px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Linki w lewym menu. */
.rail-nav a {
    color: var(--text);
    opacity: .72;
    text-decoration: none;
    font-weight: 900;
}

/* Efekt po najechaniu na link w lewym menu. */
.rail-nav a:hover {
    color: var(--gold-light);
    opacity: 1;
}

/* Numer sekcji na dole paska. */
.rail-page {
    margin-top: auto;
    color: var(--gold);
    font-weight: 800;
}

/* Główna część strony odsunięta od lewego paska. */
.page {
    margin-left: 88px;
}

/* Górne menu. */
.top-menu {
    height: 78px;
    padding: 0 9vw;
    display: flex;
    gap: 34px;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 15;
    background: rgba(5,7,10,.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Linki w górnym menu. */
.top-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

/* Aktywny link menu. */
.top-menu a.active {
    color: var(--gold-light);
}

/* Przycisk "Napisz do mnie". */
.menu-button {
    margin-left: auto;
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 13px 22px;
}

/* Sekcja główna. */
.hero {
    min-height: calc(100vh - 78px);
    padding: 70px 9vw;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(5,7,10,.97) 0%, rgba(5,7,10,.84) 34%, rgba(5,7,10,.28) 100%),
        url("../img/hero-bg.svg") center center / cover no-repeat;
}

/* Złoty okrąg za postacią. */
.hero::after {
    content: "";
    position: absolute;
    right: 6vw;
    top: 12vh;
    width: 560px;
    height: 560px;
    border: 2px solid rgba(217,166,74,.44);
    border-radius: 50%;
    box-shadow: 0 0 105px rgba(217,166,74,.24);
    z-index: 0;
}

/* Tekst w hero ma być nad tłem. */
.hero-copy {
    position: relative;
    z-index: 4;
}

/* Mały złoty napis nad nagłówkiem. */
.overline {
    margin: 0 0 18px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 900;
}

/* Główny nagłówek. */
.hero h1 {
    margin: 0;
    font-size: clamp(56px, 8vw, 112px);
    line-height: .88;
    letter-spacing: -4px;
}

/* Nazwisko w złotym kolorze. */
.hero h1 span {
    display: block;
    color: var(--gold);
}

/* Linia ze szkołą. */
.school-line {
    margin-top: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

/* Krótki opis w hero. */
.intro {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.75;
}

/* Przyciski w hero. */
.hero-buttons {
    display: flex;
    gap: 18px;
    margin: 34px 0 28px;
}

/* Wspólne ustawienia przycisków. */
.btn,
.small-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

/* Złoty przycisk. */
.btn-gold {
    color: #171007;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 18px 55px rgba(217,166,74,.18);
}

/* Ciemny przycisk. */
.btn-dark,
.small-link {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}

/* Rząd ikonek społecznościowych. */
.social-row {
    display: flex;
    gap: 14px;
}

/* Pojedyncza ikonka społecznościowa. */
.social-row a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255,255,255,.03);
    font-weight: 900;
}

/* Prawa część hero z postacią. */
.hero-art {
    position: relative;
    min-height: 660px;
    display: grid;
    place-items: end center;
    z-index: 2;
}

/* Portret PNG. */
.portrait {
    width: min(620px, 92%);
    position: relative;
    z-index: 2;
    transform: translateX(-3%);
    filter:
        drop-shadow(0 35px 80px rgba(0,0,0,.88))
        drop-shadow(0 0 45px rgba(217,166,74,.18));
}

/* Karta szkoły. */
.school-card {
    position: absolute;
    right: 0;
    top: 36%;
    z-index: 5;
    width: 190px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8,11,16,.90);
    box-shadow: 0 25px 75px rgba(0,0,0,.58);
}

/* Monogram w karcie szkoły. */
.school-mark {
    color: var(--gold);
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 18px;
}

/* Tekst szkoły w karcie. */
.school-card strong {
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.35;
}

/* Link w karcie szkoły. */
.school-card a {
    display: inline-block;
    color: var(--gold-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    margin-top: 20px;
}

/* Ogólne ustawienia sekcji. */
.section {
    padding: 72px 9vw;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 75% 10%, rgba(217,166,74,.07), transparent 30%),
        #05070a;
}

/* Sekcja O mnie. */
.about {
    display: grid;
    grid-template-columns: .9fr 1.6fr;
    gap: 58px;
    align-items: center;
}

/* Nagłówki sekcji. */
.about h2,
.section-heading h2,
.education h2,
.contact h2 {
    margin: 0 0 20px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.12;
}

/* Złote słowo w nagłówku. */
.about h2 span {
    color: var(--gold);
}

/* Teksty opisowe. */
.about p,
.feature-card p,
.project-card p,
.education p,
.contact p {
    color: var(--muted);
    line-height: 1.75;
}

/* Siatka kafelków. */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Pojedynczy kafelek. */
.feature-card {
    min-height: 230px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

/* Ikona kafelka. */
.feature-icon {
    color: var(--gold);
    font-size: 42px;
    margin-bottom: 20px;
}

/* Górny pasek sekcji. */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 46px;
}

/* Siatka umiejętności. */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 26px;
}

/* Pojedyncza umiejętność. */
.skill-card {
    text-align: center;
}

/* Okrągły wskaźnik procentowy. */
.skill-circle {
    width: 122px;
    height: 122px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(255,255,255,.08) 0);
}

/* Środek wskaźnika. */
.skill-circle span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--panel);
    font-weight: 900;
}

/* Siatka projektów. */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

/* Karta projektu. */
.project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

/* Obrazek projektu. */
.project-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Wnętrze karty projektu. */
.project-content {
    padding: 22px;
}

/* Tagi projektu. */
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Pojedynczy tag. */
.tags span {
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    font-size: 12px;
}

/* Sekcja czekająca na rozbudowę. */
.waiting {
    background: linear-gradient(135deg, rgba(217,166,74,.10), transparent 45%), #05070a;
}

/* Sekcja kontaktu. */
.contact {
    margin: 42px 9vw;
    padding: 38px 42px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 28px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(9,12,17,.96), rgba(9,12,17,.83)),
        radial-gradient(circle at 88% 50%, rgba(217,166,74,.18), transparent 25%);
}

/* Linie kontaktowe. */
.contact-list p {
    margin: 10px 0;
}

/* Stopka. */
.footer {
    padding: 30px 9vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
}

/* Układ na średnich ekranach. */
@media (max-width: 1120px) {
    .hero,
    .about,
    .contact {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .skills-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .school-card {
        right: 7%;
    }
}

/* Układ na telefonach. */
@media (max-width: 720px) {
    .left-rail {
        display: none;
    }

    .page {
        margin-left: 0;
    }

    .top-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 24px;
    }

    .menu-button {
        margin-left: 0;
        white-space: nowrap;
    }

    .hero,
    .section {
        padding: 50px 24px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

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

    .feature-grid,
    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        margin: 24px;
        padding: 30px 24px;
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}
