/* ===== SESHA DIGITAL - OUR WORK PAGE ===== */

/* Hero */
.w-hero { position: relative; overflow: hidden; padding: 160px 0 70px; background: var(--dark); }
.w-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.w-blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.w-blob.b1 { width: 520px; height: 520px; background: #6C3CE1; opacity: 0.45; top: -220px; left: 10%; animation: wBlob 16s ease-in-out infinite; }
.w-blob.b2 { width: 420px; height: 420px; background: #00D4AA; opacity: 0.22; top: -120px; right: 5%; animation: wBlob 20s ease-in-out infinite reverse; }
@keyframes wBlob { 50% { transform: translate(60px, 50px) scale(1.12); } }
.w-hero .container { position: relative; z-index: 1; }
.w-title { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--white); margin-bottom: 20px; }
.w-grad {
    display: block;
    background: linear-gradient(120deg, #A78BFA, #6C3CE1 40%, #00D4AA);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w-sub { max-width: 640px; margin: 0 auto; font-size: 1.08rem; color: var(--text-muted); line-height: 1.8; }
.w-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.w-stats div {
    min-width: 150px; padding: 16px 22px; border-radius: var(--radius-lg);
    background: rgba(22,22,58,0.6); border: 1px solid var(--border);
}
.w-stats b {
    display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1;
    background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w-stats span { font-size: 0.8rem; color: var(--text-muted); }

/* Filters */
.w-gallery { padding-top: 40px; }
.w-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.w-filter {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: var(--radius-full); cursor: pointer;
    font-family: var(--font); font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
    background: var(--dark-card); border: 1px solid var(--border); transition: var(--transition);
}
.w-filter span { font-size: 0.72rem; padding: 1px 8px; border-radius: 20px; background: rgba(255,255,255,0.06); }
.w-filter:hover { color: var(--white); border-color: rgba(139,92,246,0.4); }
.w-filter.active { color: var(--white); background: var(--gradient-1); border-color: transparent; box-shadow: 0 6px 20px rgba(108,60,225,0.35); }
.w-filter.active span { background: rgba(255,255,255,0.2); }

/* Grid + cards */
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.w-card { display: flex; flex-direction: column; }
.w-card.w-hidden { display: none; }
.w-frame {
    position: relative; display: block; border-radius: 16px; overflow: hidden;
    background: var(--dark-card); border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), border-color 0.4s, box-shadow 0.4s;
}
.w-card:hover .w-frame { transform: translateY(-6px); border-color: rgba(139,92,246,0.5); box-shadow: 0 26px 60px rgba(108,60,225,0.25); }
.w-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #101030; border-bottom: 1px solid var(--border); }
.w-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.w-bar i:nth-child(1) { background: #F87171; }
.w-bar i:nth-child(2) { background: #FBBF24; }
.w-bar i:nth-child(3) { background: #34D399; }
.w-bar span {
    flex: 1; margin-left: 8px; padding: 3px 12px; border-radius: 6px; font-size: 0.72rem; color: var(--text-muted);
    background: rgba(255,255,255,0.05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Screenshot window: 16:10. The image is 1280×2800, so scrolling it up by 71.4% shows the bottom. */
.w-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.w-shot img { width: 100%; height: auto; transform: translateY(0); transition: transform 1.2s ease; }
.w-card:hover .w-shot img { transform: translateY(-71.4%); transition: transform 6s linear; }
.w-view {
    position: absolute; right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 600; color: var(--white);
    background: var(--gradient-1); box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s;
}
.w-card:hover .w-view, .w-frame:focus-visible .w-view { opacity: 1; transform: none; }
.w-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 4px 0; }
.w-info h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 3px; }
.w-info p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }
.w-tag {
    flex-shrink: 0; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
    color: var(--accent); padding: 4px 10px; border-radius: 20px; background: rgba(0,212,170,0.1); white-space: nowrap;
}

/* Touch screens have no hover: always show the "View live site" pill */
@media (hover: none) {
    .w-view { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    .w-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
    .w-hero { padding: 120px 0 50px; }
    .w-grid { grid-template-columns: 1fr; }
    .w-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px 32px; padding: 4px 24px 8px; scrollbar-width: none; }
    .w-filters::-webkit-scrollbar { display: none; }
    .w-filter { flex-shrink: 0; }
    .w-stats div { min-width: 0; flex: 1 1 30%; padding: 12px 10px; }
    .w-stats b { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .w-blob { animation: none; }
    .w-card:hover .w-shot img { transform: none; }
}
