/* HOME */

.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: 80px 40px 60px !important;
    width: 100%;
    margin: 0 0 60px;
}

.hero-home {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.hero-left {
    flex: 1;
    max-width: 750px;
}

.hero-text h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-text div {
    font-size: 22px;
    line-height: 1.8;
    color: var(--color-text-sub);
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.hero-btn.primary {
    background: var(--color-accent-blue);
    color: white;
}

.hero-btn.primary:hover {
    background: var(--color-accent-blue-hover);
}

.hero-btn.secondary {
    background: white;
    color: #1c2555;
}

.hero-btn.secondary:hover {
    background: #e5e7eb;
}

.hero-btn.outline {
    border: 2px solid var(--color-accent-blue);
    color: var(--color-accent-blue);
}

.hero-btn.outline:hover {
    background: var(--color-accent-blue);
    color: white;
}

.hero-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgb(from var(--color-accent-blue) r g b / .25),
        rgba(121,78,201,.25)
    );
    border: 2px solid rgb(from var(--color-accent-blue) r g b / .25);
    box-shadow:
        0 0 40px rgb(from var(--color-accent-blue) r g b / .25),
        0 0 90px rgba(121,78,201,.15);
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

    .hero-avatar {
        animation: floating 4s ease-in-out infinite;
    }

    @keyframes floating {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-14px); }
    }

    .animated-text {
        color: var(--color-accent-blue);
        font-size: 26px;
        font-weight: bold;
        animation: fadeText 3s infinite alternate;
    }

    @keyframes fadeText {
        from { opacity: 0.4; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }

.hero-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.hero-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgb(from var(--color-accent-blue) r g b / 0.25);
    transition: 0.3s;
}

.hero-socials a:hover {
    color: var(--color-accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgb(from var(--color-accent-blue) r g b / 0.35);
}

.hero-icon {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

/* =================================
   WYBÓR WERSJI JĘZYKOWEJ CV
================================= */

.cv-download {
    position: relative;
}

.cv-download > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    list-style: none;
    cursor: pointer;
    user-select: none;
}

.cv-download > summary::-webkit-details-marker {
    display: none;
}

.cv-download > summary::after {
    content: "▾";
    font-size: 13px;
    transition: transform 0.2s ease;
}

.cv-download[open] > summary::after {
    transform: rotate(180deg);
}

.cv-download-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 100;

    width: max-content;
    min-width: 210px;
    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);
}

.cv-download-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;
}

.cv-download-options a:hover {
    color: var(--color-accent-blue);
    background: rgb(from var(--color-accent-blue) r g b / 0.12);
}


/* RESPONSYWNOŚĆ */

/* @media (max-width: 1100px) {

    .hero-home {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 10px;
    }

    .hero-icon{
        justify-content: center;
    }
} */


/* KRÓTKIE PRZEDSTAWIENIE */

.about-short{
    padding:20px 80px;
}

.about-short-container{
    max-width:1400px;
    margin:auto;

    display:grid;
    grid-template-columns:1fr 900px;
    gap:80px;
    align-items:center;
}

.about-short h2{
    font-size:48px;
    margin-bottom:25px;
}

.about-short p{
    font-size:20px;
    line-height:1.8;
    color:var(--color-text-sub);
}

.skills-tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:35px;
}

.skills-tags span{
    padding:10px 18px;
    border-radius:999px;
    background:rgba(255,255,255,.05);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .25);
}

.about-short-stats{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.stat-card{
    padding:30px;
    border-radius: 15px / 50px;
    background:rgba(255,255,255,.05);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-5px);

    box-shadow:
        0 0 25px rgb(from var(--color-accent-blue) r g b / .2);
}

.stat-card h3{
    font-size:42px;
    color:var(--color-accent-blue);
}

.stat-card p{
    margin-top:8px;
}

/* RESPONSYWNOŚĆ - KRÓTKIE PRZEDSTAWIENIE *

/* @media (max-width: 1100px) {

    .about-short {
        padding: 70px 25px;
        overflow: hidden;
    }

    .about-short-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-short-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        order: 2;
    }

    .about-short-text {
        order: 1;
        max-width: 100%;
    }

    .about-short h2 {
        font-size: 38px;
        word-break: normal;
    }

    .about-short p {
        font-size: 18px;
    }

    .stat-card {
        width: 180px;
        padding: 25px;
    }

    .skills-tags {
        justify-content: center;
    }
}

@media (max-width: 600px) {

    .about-short h2 {
        font-size: 32px;
    }

    .about-short-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 260px;
    }
} */

/* TECHNOLOGIE */

.skills-section{
    padding:120px 80px;
}

.skills-container{
    max-width:1400px;
    margin:auto;
}

.section-header{
    text-align:center;
    margin-bottom:60px;
}

.section-header h2{
    font-size:48px;
    margin-bottom:20px;
}

.section-header p{
    font-size:20px;
    color:var(--color-text-sub);
}

.skills-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.skill-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
    border-radius:20px;
    padding:30px;
    transition:.3s;
}

.skill-card .level{
    display: none;
}

.skill-card:hover{
    transform:translateY(-5px);
    box-shadow:
        0 0 25px rgb(from var(--color-accent-blue) r g b / .2);
}

.skill-card h3{
    margin-bottom:18px;
    font-size:24px;
}

.skill-card-heading{
    display:flex;
    align-items:center;
    gap:16px;
    margin-bottom:20px;
}

.skill-card-heading h3{
    margin:0;
}

.skill-card-icon{
    display:flex;
    width:58px;
    height:58px;
    flex:0 0 58px;
    align-items:center;
    justify-content:center;

    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
    border-radius:16px;
    background:rgba(4,10,35,.26);
}

.skill-card-icon img{
    display:block;
    width:42px;
    height:42px;
    object-fit:contain;
}

.skill-card-icon i{
    color:var(--color-accent-blue);
    font-size:27px;
}

.skill-level{
    width:100%;
    height:12px;
    background:rgba(255,255,255,.08);
    border-radius:999px;
    overflow:hidden;
}

.skill-progress{
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-purple));
}


/* WYRÓŻNIONE PROJEKTY */

.featured-projects{
    padding:120px 80px;
}

.featured-container{
    max-width:1400px;
    margin:auto;
}

.featured-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.featured-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
    border-radius:24px;
    overflow:hidden;
    transition:.3s;
}

.featured-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 35px rgb(from var(--color-accent-blue) r g b / .22);
}

.project-image{
    height:210px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at 30% 30%, rgb(from var(--color-accent-blue) r g b / .35), transparent 35%),
        linear-gradient(135deg, #1e1b4b, #1e3a8a);
    border-bottom:1px solid rgb(from var(--color-accent-blue) r g b / .2);
}

.project-image span{
    font-size:28px;
    font-weight:800;
    color:white;
}

/* Obszar zdjęcia wyróżnionego projektu */

.featured-card .project-image {
    position: relative;
    display: flex;
    width: 100%;
    height: 230px;
    min-height: 230px;
    padding: 0px;
    flex: 0 0 230px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background: #f5f6fa;
}

.featured-card .project-image img {
    position: static;
    inset: auto;

    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;

    object-fit:fill;
    object-position: center;
}

@media (max-width: 600px) {
    .featured-card .project-image {
        height: 200px;
        min-height: 200px;
        flex-basis: 200px;
    }
}

.project-content{
    padding:30px;
}

.project-content h3{
    font-size:26px;
    margin-bottom:15px;
}

.project-content p{
    color: var(--featured-project-text-color);
    font-size:17px;
    line-height:1.7;
    margin-bottom:22px;
}

.project-techs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:25px;
}

.project-techs span{
    padding:8px 14px;
    border-radius:999px;
    font-size:14px;
    color:var(--color-accent-blue);
    background:rgb(from var(--color-accent-blue) r g b / .08);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
}

.project-link{
    color:var(--color-accent-blue);
    text-decoration:none;
    font-weight:700;
}

.project-link:hover{
    color:white;
}

.projects-list a{
    text-decoration: none;
}

.featured-card .details-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 22px;
    padding: 10px 16px;

    color: var(--featured-button-text-color);
    background: rgb(from var(--featured-button-background) r g b / 0.1);
    border: 1px solid rgb(from var(--featured-button-background) r g b / 0.55);
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.featured-card .details-link::after {
    content: "→";
    font-size: 17px;
    transition: transform 0.2s ease;
}

.featured-card .details-link:hover {
    color: var(--featured-button-hover-text-color);
    background: var(--featured-button-hover-background);
    border-color: var(--featured-button-hover-background);
    box-shadow: 0 6px 16px rgb(from var(--featured-button-hover-background) r g b / 0.22);
    transform: translateY(-2px);
}

.featured-card .details-link:hover::after {
    transform: translateX(3px);
}

.featured-card .details-link:focus-visible {
    outline: 3px solid rgb(from var(--featured-button-background) r g b / 0.35);
    outline-offset: 3px;
}




/* RESPONSYWNOŚĆ PROJEKTÓW */

/* @media(max-width:1100px){
    .featured-grid{
        grid-template-columns:1fr;
    }

    .featured-projects{
        padding:80px 25px;
    }
} */

/* OPINIE */

.opinie-slider{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:30px;
}

.opinie-track{
    width:700px;
    position:relative;
}

.opinie-card{
    display:none;
    background:rgba(255,255,255,.05);
    border:1px solid rgb(from var(--color-accent-blue) r g b / .2);
    border-radius:24px;
    padding:40px;
    text-align:center;
}

.opinie-card.active{
    display:block;
}

.slider-btn{
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
    background:var(--color-accent-blue);
    color:white;
}

.slider-btn:hover{
    background:var(--color-accent-blue-hover);
}

/*LOGOWANIE POWRÓT HOME */
.back-home{
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #4ea1ff;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.back-home:hover{
    color: white;
}

.opinie-avatar{
    width:90px;
    height:90px;
    border-radius:50%;
    object-fit:cover;
    margin:0 auto 25px;
    border:3px solid var(--color-accent-blue);
    box-shadow:
        0 0 20px rgb(from var(--color-accent-blue) r g b / .3);
}


/* CTA REVEAL */

.cta-reveal{
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:80px 20px;

    position:relative;
    z-index:5;

    margin-top:120px;

    background:
        radial-gradient(circle at 50% 20%, rgb(from var(--color-accent-blue) r g b / .22), transparent 35%),
        radial-gradient(circle at 70% 80%, rgba(124,77,255,.20), transparent 35%),
        linear-gradient(
            135deg,
            var(--cta-background-start),
            var(--cta-background-middle),
            var(--cta-background-end)
        );

    border-radius:60px 60px 0 0;

    box-shadow:
        0 -40px 80px rgba(0,0,0,.35);
}

.cta-reveal-content{
    max-width:850px;
    text-align:center;
}

.cta-reveal-content span{
    display:inline-block;

    margin-bottom:18px;

    color:var(--color-accent-blue);
    font-size:18px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.cta-reveal-content h2{
    font-size:70px;
    line-height:1.05;
    margin-bottom:28px;
}

.cta-reveal-content p{
    font-size:22px;
    line-height:1.8;
    color: var(--cta-text-color);
    margin-bottom:40px;
}

.cta-buttons{
    display:flex;
    justify-content:center;
    gap:18px;
    flex-wrap:wrap;
}

.cta-btn{
    text-decoration:none;
    padding:16px 34px;
    border-radius:14px;
    font-weight:700;
    transition:.3s;
}

.cta-btn.primary{
    background:var(--color-accent-blue);
    color:white;
}

.cta-btn.primary:hover{
    background:var(--color-accent-blue-hover);
    transform:translateY(-4px);
}

.cta-btn.secondary{
    border:2px solid var(--color-accent-blue);
    color:var(--color-accent-blue);
}

.cta-btn.secondary:hover{
    background:var(--color-accent-blue);
    color:white;
}

/* @media(max-width:768px){
    .cta-reveal{
        border-radius:35px 35px 0 0;
        margin-top:20px;
    }

    .cta-reveal-content h2{
        font-size:42px;
    }

    .cta-reveal-content p{
        font-size:18px;
    }
} */




/* Odstęp pomiędzy Hero a krótkim przedstawieniem */

.hero + .about-short {
    position: relative;
    margin-top: 90px;
    padding-top: 80px;
}

.hero + .about-short::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(calc(100% - 48px), 1280px);
    height: 1px;
    content: "";
    background: rgb(from var(--color-accent-blue) r g b / 0.14);
    transform: translateX(-50%);
}

@media (max-width: 700px) {
    .hero + .about-short {
        margin-top: 55px;
        padding-top: 55px;
    }

    .hero + .about-short::before {
        width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
    .hero,
    .about-short,
    .skills-section,
    .featured-projects,
    .opinie {
        padding-left: 18px;
        padding-right: 18px;
    }

    .about-short,
    .skills-section,
    .featured-projects,
    .opinie {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2,
    .about-short h2 {
        font-size: 30px;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .section-header p,
    .about-short p {
        font-size: 15px;
        line-height: 1.6;
    }


    /* =================================
       HERO
    ================================= */

    .hero {
        min-height: auto;
        padding-top: 30px;
        padding-bottom: 45px;
        margin-bottom: 0;
    }

    .hero-home {
        flex-direction: column-reverse;
        gap: 25px;
        text-align: center;
    }

    .hero-left {
        width: 100%;
        max-width: 100%;
    }

    .hero-avatar {
        width: 190px;
        height: 190px;
    }

    .hero-text h1 {
        font-size: clamp(32px, 10vw, 42px);
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .animated-text {
        font-size: 20px;
    }

    .hero-text div {
        font-size: 15px;
        line-height: 1.65;
    }

    .hero-buttons {
        margin-top: 25px;

        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .hero-btn {
        padding: 12px 10px;
        font-size: 14px;
        text-align: center;
    }


    .hero-buttons .hero-btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .hero-socials {
        justify-content: center;
        margin-top: 20px;
        gap: 12px;
    }

    .hero-socials a {
        width: 38px;
        height: 38px;
    }

    .hero-buttons .cv-download:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .cv-download > summary {
        width: 100%;
    }

    .cv-download-options {
        right: 0;
        left: 0;
        width: 100%;
    }

    /* =================================
       KRÓTKIE PRZEDSTAWIENIE
    ================================= */

    .about-short-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-short-text {
        order: 1;
    }

    .about-short-stats {
        order: 2;

        display: grid;
        grid-template-columns: repeat(2, 1fr);

        width: 100%;
        gap: 12px;
    }

    .stat-card {
        width: 100%;
        padding: 20px 12px;
        border-radius: 18px;
    }

    .stat-card h3 {
        font-size: 30px;
    }

    .stat-card p {
        font-size: 13px;
        margin-top: 5px;
    }

    .skills-tags {
        justify-content: center;
        gap: 7px;
        margin-top: 22px;
    }

    .skills-tags span {
        padding: 7px 11px;
        font-size: 12px;
    }


    /* =================================
       TECHNOLOGIE
    ================================= */

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .skill-card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .skill-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .skill-card-heading {
        gap: 10px;
        margin-bottom: 14px;
    }

    .skill-card .skill-card-heading h3 {
        margin: 0;
    }

    .skill-card-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 12px;
    }

    .skill-card-icon img {
        width: 32px;
        height: 32px;
    }

    .skill-card-icon i {
        font-size: 20px;
    }

    .skill-card img {
        max-width: 45px;
        height: auto;
    }

    .skill-card span {
        font-size: 13px;
    }

    .skill-level {
        height: 8px;
        margin-top: 8px;
    }


    /* =================================
       WYRÓŻNIONE PROJEKTY
    ================================= */

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .featured-card {
        border-radius: 18px;
    }

    .project-image {
        height: 150px;
    }

    .project-image span {
        font-size: 22px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .project-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .project-techs {
        gap: 6px;
        margin-bottom: 16px;
    }

    .project-techs span {
        padding: 6px 9px;
        font-size: 11px;
    }


    /* =================================
       OPINIE
    ================================= */

    .opinie-slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;

        gap: 12px;

        width: 100%;
    }

    .opinie-track {
        width: 100%;
        order: 1;
    }

    .slider-btn {
        order: 2;

        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .opinie-card {
        width: 100%;
        padding: 25px 18px;
        border-radius: 18px;
    }

    .opinie-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .opinie-text {
        font-size: 14px;
        line-height: 1.6;
    }


    /* =================================
       CTA
    ================================= */

    .cta-reveal {
        min-height: auto;

        margin-top: 40px;

        padding:
            65px
            18px;

        border-radius:
            28px
            28px
            0
            0;
    }

    .cta-reveal-content {
        width: 100%;
        max-width: 500px;
    }

    .cta-reveal-content span {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .cta-reveal-content h2 {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .cta-reveal-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 25px;
    }

    .cta-buttons {
        gap: 10px;
    }

    .cta-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
} 

