/* ABOUT ME */

.about-page{
    padding:70px 80px 110px;
}

.about-hero{
    max-width:1400px;
    margin:0 auto 100px;
    display:grid;
    grid-template-columns:1.2fr 380px;
    gap:80px;
    align-items:center;
}

.about-hero-text span{
    color:var(--color-accent-blue);
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
}

.about-hero-text h1{
    font-size:64px;
    line-height:1.1;
    margin:18px 0 25px;
}

.about-hero-text p{
    font-size:21px;
    line-height:1.8;
    color:var(--color-text-sub);
    max-width:760px;
    margin-bottom:35px;
}

.about-hero-image{
    width:340px;
    height:340px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid rgb(from var(--color-accent-blue) r g b / .3);
    box-shadow:0 0 55px rgb(from var(--color-accent-blue) r g b / .25);
}

.about-hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.about-btn{
    display:inline-block;
    padding:15px 32px;
    border-radius:14px;
    background:var(--color-accent-blue);
    color:white;
    text-decoration:none;
    font-weight:700;
}

.about-section{
    max-width:1400px;
    margin:0 auto 80px;
}

.about-section h2,
.section-title h2{
    font-size:44px;
    margin-bottom:18px;
}

.about-section p,
.section-title p{
    color:var(--color-text-sub);
    font-size:20px;
    line-height:1.8;
}

.about-bio{
    padding:42px;
    border-radius:26px;
    background:rgba(255,255,255,.05);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
}

.timeline{
    display:grid;
    gap:22px;
    margin-top:35px;
}

.timeline-item, .about-card{
    padding:28px;
    border-left:4px solid var(--color-accent-blue);
    border-radius:20px;
    background:rgba(255,255,255,.05);
}

/* .about-card{
    border-left:4px solid #9f3fff;
} */

.timeline-item span{
    color:var(--color-accent-blue);
    font-weight:700;
}

.timeline-item h3{
    margin:10px 0;
    font-size:24px;
}

.about-grid-section{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}


.about-card ul{
    margin-top:20px;
    padding-left:20px;
}

.about-card li{
    margin-bottom:12px;
    color:var(--color-text-sub);
    font-size:18px;
}

.about-skills-grid .about-card ul{
    padding-left:0;
    list-style:none;
}

.about-skill-item{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:14px;
}

.about-skill-name{
    min-width:0;
    overflow-wrap:anywhere;
}

.about-skill-dots{
    display:grid;
    grid-template-columns:repeat(10, 13px);
    gap:6px;
    flex:0 0 auto;
}

.about-skill-dot{
    position:relative;
    width:13px;
    height:13px;
    overflow:hidden;

    border:1px solid rgb(from var(--color-accent-blue) r g b / .48);
    border-radius:50%;
    background:rgba(255,255,255,.08);
}

.about-skill-dot::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:var(--skill-dot-fill, 0%);

    background:var(--color-accent-blue);
}

.about-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.about-stat{
    text-align:center;
    padding:32px;
    border-radius:22px;
    background:rgba(255,255,255,.05);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
}

.about-stat h3{
    font-size:46px;
    color:var(--color-accent-blue);
}

.hobbies-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:22px;
    margin-top:35px;
}

.hobby-card{
    min-height:170px;
    padding:26px;
    border-radius:24px;
    background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border:1px solid rgb(from var(--color-accent-blue) r g b / .22);
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    text-align:left;
    gap:12px;
}

.hobby-card i{
    width:48px;
    height:48px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgb(from var(--color-accent-blue) r g b / .13);
    color:var(--color-accent-blue);
    font-size:22px;
}

.hobby-card h3{
    font-size:22px;
    margin:0;
    color:#fff;
}

.hobby-card p{
    margin:0;
    color:var(--color-text-sub);
    font-size:10px;
    line-height:2;
    font-size: 15px;
    opacity:.85;
}

.about-cv{
    max-width:1400px;
    margin:0 auto 90px;
    padding:45px;
    border-radius:26px;
    background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border:1px solid rgb(from var(--color-accent-blue) r g b / .22);
    border-left:4px solid var(--color-accent-blue);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:35px;
}

.about-cv h2{
    font-size:36px;
    margin-bottom:12px;
}

.about-cv p{
    color:var(--color-text-sub);
    font-size:18px;
    line-height:1.6;
    max-width:700px;
}

.about-cv-buttons{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.about-cv .about-btn{
    white-space:nowrap;
}

.about-cv .about-btn.outline{
    background:transparent;
    border:2px solid var(--color-accent-blue);
    color:var(--color-accent-blue);
}

.about-cv .about-btn.outline:hover{
    background:var(--color-accent-blue);
    color:white;
}

@media(max-width:900px){
    .about-cv{
        flex-direction:column;
        align-items:flex-start;
        padding:30px;
    }

    .about-cv-buttons{
        justify-content:flex-start;
    }
}

.education-grid,
.about-skills-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 35px;
}

.education-grid .about-card,
.about-skills-grid .about-card{
    padding: 28px;
    border-left: 4px solid var(--color-accent-blue);
    border-radius: 20px;
    background: rgba(255,255,255,.05);
}

/* =================================
   EFEKT 3D KAFELKÓW
   Doświadczenie, edukacja i umiejętności
================================= */

.timeline,
.education-grid,
.about-skills-grid{
    perspective: 1100px;
}

.timeline-item,
.education-grid .about-card,
.about-skills-grid .about-card{
    position: relative;
    isolation: isolate;

    transform: translateZ(0) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    transform-origin: center;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transition:
        transform 0.45s cubic-bezier(.2,.8,.2,1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

/* Treść lekko wysuwa się przed powierzchnię kafelka. */
.timeline-item > *,
.education-grid .about-card > *,
.about-skills-grid .about-card > *{
    position: relative;
    z-index: 2;

    transform: translateZ(0);
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
}

/* Na komputerze działa po najechaniu, a na ekranie dotykowym po dotknięciu. */
.timeline-item:hover,
.timeline-item:active,
.education-grid .about-card:hover,
.education-grid .about-card:active,
.about-skills-grid .about-card:hover,
.about-skills-grid .about-card:active{
    z-index: 2;

    border-color: var(--color-accent-blue);
    transform: translate(15px, -9px) rotateX(-3deg) scale(1.01);

    box-shadow:
        0 24px 45px rgba(0,0,0,.32),
        0 12px 30px rgb(from var(--color-accent-blue) r g b / .16);
}

.timeline-item:hover > *,
.timeline-item:active > *,
.education-grid .about-card:hover > *,
.education-grid .about-card:active > *,
.about-skills-grid .about-card:hover > *,
.about-skills-grid .about-card:active > *{
    transform: translateZ(20px);
}

@media (prefers-reduced-motion: reduce){
    .timeline-item,
    .education-grid .about-card,
    .about-skills-grid .about-card,
    .timeline-item > *,
    .education-grid .about-card > *,
    .about-skills-grid .about-card > *{
        transition: none;
    }
}

/* =================================
   WYBÓR WERSJI CV
================================= */

.about-cv-picker {
    position: relative;
    z-index: 30;

    display: inline-block;
    margin-top: 20px;
}

.about-cv-picker > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    list-style: none;
    cursor: pointer;
    user-select: none;
}

.about-cv-picker > summary::-webkit-details-marker {
    display: none;
}

.about-cv-picker > summary::after {
    content: "▾";

    font-size: 13px;

    transition: transform 0.2s ease;
}

.about-cv-picker[open] > summary::after {
    transform: rotate(180deg);
}

.about-cv-picker-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 50;

    width: max-content;
    min-width: 220px;
    padding: 8px;

    background: rgba(23, 20, 56, 0.97);
    border: 1px solid rgb(from var(--color-accent-blue) r g b / 0.4);
    border-radius: 12px;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.about-cv-picker-options a {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 13px;
    border-radius: 8px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.about-cv-picker-options a:hover {
    color: var(--color-accent-blue);
    background: rgb(from var(--color-accent-blue) r g b / 0.12);
}

@media (max-width: 600px) {
    .about-skill-item{
        align-items:center;
        flex-direction:row;
        gap:10px;
    }

    .about-skill-dots{
        grid-template-columns:repeat(10, 11px);
        gap:5px;
    }

    .about-skill-dot{
        width:11px;
        height:11px;
    }

    .about-cv-picker {
        width: 100%;
    }

    .about-cv-picker > summary {
        width: 100%;
    }

    .about-cv-picker-options {
        right: 0;
        left: 0;
        width: 100%;
    }
}

@media(max-width:1000px){
    .about-page{
        padding:45px 25px 80px;
    }

    .about-hero{
        grid-template-columns:1fr;
        text-align:center;
        gap:45px;
    }

    .about-hero-image{
        margin:auto;
        width:260px;
        height:260px;
    }

    .about-hero-text h1{
        font-size:42px;
    }

    .about-grid-section,
    .about-stats,
    .hobbies-grid{
        grid-template-columns:1fr;
    }
}

.bio-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.bio-grid h3,
.timeline-item h4{
    color:var(--color-accent-blue);
    margin-bottom:14px;
}

.timeline-item ul{
    margin-top:15px;
    padding-left:22px;
}

.timeline-item li{
    color:var(--color-text-sub);
    margin-bottom:8px;
    line-height:1.6;
}

@media(max-width:1000px){
    .bio-grid{
        grid-template-columns:1fr;
    }
}
