.zonwatt-projects-wrap {
    width: 100%;
    margin: 0 auto;
}

.zonwatt-projects-grid {
    display: grid;
    gap: 26px;
}

.zonwatt-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.zonwatt-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zonwatt-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zonwatt-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.zonwatt-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #071321;
    aspect-ratio: 3 / 4;
    min-height: 420px;
    box-shadow: 0 22px 55px rgba(4, 15, 30, 0.20);
    isolation: isolate;
    transform: translateY(0);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.zonwatt-project-card:hover,
.zonwatt-project-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(4, 15, 30, 0.30);
}

.zonwatt-project-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.01);
    transition: transform 0.85s cubic-bezier(.16, 1, .3, 1), filter 0.85s cubic-bezier(.16, 1, .3, 1);
}

.zonwatt-project-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(244, 197, 33, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(3, 12, 24, 0.02) 0%, rgba(3, 12, 24, 0.25) 45%, rgba(3, 12, 24, 0.90) 100%);
    opacity: 0;
    transition: opacity 0.65s ease;
    z-index: 1;
}

.zonwatt-project-image::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 18px;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.55s ease, transform 0.55s ease;
    z-index: 2;
    pointer-events: none;
}

.zonwatt-project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 38px 26px;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.zonwatt-project-title {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.2px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
    position: relative;
    padding-bottom: 15px;
}

.zonwatt-project-title::after {
    content: "";
    width: 62px;
    height: 4px;
    border-radius: 99px;
    background: #f4c521;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.55s ease 0.08s;
}

.zonwatt-project-shine {
    position: absolute;
    top: -40%;
    left: -75%;
    width: 60%;
    height: 180%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.24) 48%, transparent 100%);
    transform: rotate(12deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.zonwatt-project-card:hover .zonwatt-project-image,
.zonwatt-project-card:focus-within .zonwatt-project-image {
    transform: scale(1.14) rotate(0.6deg);
    filter: saturate(1.14) contrast(1.06);
}

.zonwatt-project-card:hover .zonwatt-project-image::before,
.zonwatt-project-card:focus-within .zonwatt-project-image::before {
    opacity: 1;
}

.zonwatt-project-card:hover .zonwatt-project-image::after,
.zonwatt-project-card:focus-within .zonwatt-project-image::after {
    opacity: 1;
    transform: scale(1);
}

.zonwatt-project-card:hover .zonwatt-project-overlay,
.zonwatt-project-card:focus-within .zonwatt-project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.zonwatt-project-card:hover .zonwatt-project-title::after,
.zonwatt-project-card:focus-within .zonwatt-project-title::after {
    transform: translateX(-50%) scaleX(1);
}

.zonwatt-project-card:hover .zonwatt-project-shine,
.zonwatt-project-card:focus-within .zonwatt-project-shine {
    opacity: 1;
    animation: zonwattShine 1.1s ease forwards;
}

.zonwatt-projects-empty {
    padding: 22px;
    border-radius: 14px;
    background: #f7f7f7;
    color: #333;
    text-align: center;
}

@keyframes zonwattShine {
    from { left: -75%; }
    to { left: 125%; }
}

@media (max-width: 1024px) {
    .zonwatt-cols-3,
    .zonwatt-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zonwatt-project-card {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .zonwatt-projects-grid,
    .zonwatt-cols-1,
    .zonwatt-cols-2,
    .zonwatt-cols-3,
    .zonwatt-cols-4 {
        grid-template-columns: 1fr;
    }

    .zonwatt-project-card {
        min-height: 390px;
        border-radius: 20px;
    }

    .zonwatt-project-title {
        font-size: 22px;
    }
}
