/* ============================================================
   PODSTRONA PROJEKTY — pełny redesign
   ============================================================ */

/* --- Reveal utility --- */

.projects-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-reveal.is-visible { opacity: 1; transform: translateY(0); }
.projects-reveal.delay-1    { transition-delay: 0.12s; }
.projects-reveal.delay-2    { transition-delay: 0.24s; }

/* --- Hero reveal --- */

.projects-hero-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: projects-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.projects-hero-reveal.d1 { animation-delay: 0.05s; }
.projects-hero-reveal.d2 { animation-delay: 0.2s; }
.projects-hero-reveal.d3 { animation-delay: 0.36s; }

@keyframes projects-hero-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- HERO -------------------------------------------------- */

.projects-hero {
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
}

.projects-hero-floaters {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

.projects-hero-floaters.is-hidden { opacity: 0; }

.projects-hero-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-yellow);
    filter: blur(22px);
    opacity: 0.28;
    animation: projects-hero-float ease-in-out infinite;
}

.projects-hero-dot.dot-1 { width: 110px; height: 110px; top: 38%; left: 12%;  animation-duration: 26s; animation-delay: 0s; }
.projects-hero-dot.dot-2 { width: 200px; height: 200px; top: 6%;  left: 38%;  animation-duration: 22s; animation-delay: -7s; }
.projects-hero-dot.dot-3 { width: 90px;  height: 90px;  top: 40%; right: 12%; animation-duration: 30s; animation-delay: -14s; }
.projects-hero-dot.dot-4 { width: 150px; height: 150px; top: 10%; right: 25%; animation-duration: 19s; animation-delay: -4s; }

@keyframes projects-hero-float {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(18px, 14px) scale(1.05); }
    50%  { transform: translate(-12px, 24px) scale(0.97); }
    75%  { transform: translate(-22px, -10px) scale(1.03); }
    100% { transform: translate(0, 0) scale(1); }
}

.projects-hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.projects-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 68px;
    line-height: 1.06;
    font-weight: 500;
    color: var(--text-green-dark);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.projects-hero-content > p {
    font-size: 19px;
    line-height: 1.7;
    color: rgba(74, 74, 74, 0.72);
    max-width: 620px;
    margin: 0 auto 40px;
}

.projects-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.projects-scroll-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-green-dark);
    text-decoration: none;
    transition: gap 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.projects-scroll-link:hover {
    gap: 12px;
    opacity: 1;
}

/* ---- O PROJEKTACH ------------------------------------------ */

.projects-about {
    padding: 80px 0 100px;
}

.projects-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.projects-about-image {
    position: relative;
    height: 500px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(55, 70, 43, 0.12);
}

.projects-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-about-image:hover img { transform: scale(1.04); }

/* Tekstowa strona — otwarty styl jak o_nas */
.projects-about-text {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

.projects-about-text::before { display: none; }

.projects-small-label {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(55, 70, 43, 0.55);
}

.projects-about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--text-green-dark);
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 28px;
}

.projects-about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-about-text:hover h2::after { width: 100px; }

.projects-about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(74, 74, 74, 0.76);
    margin-top: 22px;
    margin-bottom: 0;
}

/* ---- NASZE WARTOŚCI --------------------------------------- */

.projects-values {
    padding: 0 0 130px;
}

.projects-values-intro {
    max-width: 680px;
    margin: 0 auto 64px;
    text-align: center;
}

.projects-values-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 54px;
    line-height: 1.1;
    font-weight: 500;
    color: var(--text-green-dark);
    margin: 8px 0 16px;
}

.projects-values-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(74, 74, 74, 0.7);
}

/* Siatka kart wartości */
.projects-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.project-value-card {
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(55, 70, 43, 0.08);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(55, 70, 43, 0.05);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(55, 70, 43, 0.1);
}

/* Żółta linia od dołu na hover */
.project-value-card {
    position: relative;
}

.project-value-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-yellow);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.project-value-card:hover::before { width: 100%; }

/* Część tekstowa karty */
.project-value-body {
    padding: 36px 32px 28px;
}

/* Kategoria — żółty chip */
.value-category {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255, 214, 68, 0.2);
    border: 1px solid rgba(255, 214, 68, 0.5);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-green-dark);
}

.value-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    line-height: 1;
    color: rgba(55, 70, 43, 0.14);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.project-value-card:hover .value-number {
    color: rgba(55, 70, 43, 0.28);
}

.project-value-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 500;
    color: var(--text-green-dark);
    margin-bottom: 14px;
}

.project-value-body p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(74, 74, 74, 0.72);
}

/* Część z obrazkiem */
.project-value-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-value-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    filter: saturate(0.9);
}

.project-value-card:hover .project-value-image img {
    transform: scale(1.06);
}

/* Alternating card offsets for visual interest */
.projects-values-grid > .project-value-card:nth-child(2) {
    margin-top: 36px;
}

/* ---- RESPONSYWNOŚĆ ----------------------------------------- */

@media (max-width: 1000px) {
    .projects-hero-content h1 { font-size: 52px; }
    .projects-about-grid { grid-template-columns: 1fr; }
    .projects-about-image { height: 380px; }
    .projects-values-grid { grid-template-columns: 1fr; gap: 20px; }
    .projects-values-grid > .project-value-card:nth-child(2) { margin-top: 0; }
    .projects-values-intro h2 { font-size: 44px; }
}

@media (max-width: 650px) {
    .projects-hero { padding: 90px 0 50px; }
    .projects-hero-content h1 { font-size: 42px; }
    .projects-hero-actions { flex-direction: column; gap: 16px; }
    .projects-about { padding: 60px 0 80px; }
    .projects-about-image { height: 300px; border-radius: 24px; }
    .projects-about-text h2 { font-size: 34px; }
    .project-value-body { padding: 28px 24px 22px; }
    .project-value-image { height: 180px; }
    .projects-values-intro h2 { font-size: 36px; }
}
