/* work.css — IITCON Our Work page */

/* Hero photo background */
.work-hero .hero-photo-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('assets/heroes/work-hero.jpg') center 50% / cover no-repeat;
    opacity: .15;
    pointer-events: none;
    filter: saturate(.5);
}

/* ── HERO ── */
.work-hero {
    min-height: 48vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(60px + 4rem) 0 4rem;
    position: relative; overflow: hidden;
    background: var(--navy);
}
.work-hero .hero-grid-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(18,107,250,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18,107,250,.055) 1px, transparent 1px);
    background-size: 54px 54px;
}
.work-hero .container { position: relative; z-index: 1; max-width: 820px; }
.work-hero .hero-pre {
    font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--blue); margin-bottom: 1.25rem;
}
.work-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 600; line-height: 1.08;
    letter-spacing: -.75px; margin-bottom: 1.5rem;
    word-break: break-word;
}
.work-hero h1 em { font-style: normal; color: var(--blue); }
.work-hero .hero-sub {
    font-size: clamp(.88rem, 1.4vw, 1rem);
    color: rgba(255,255,255,.45); line-height: 1.8; max-width: 580px;
}

/* ── CASES ── */
.cases-section {
    background: var(--navy-2);
    border-top: 1px solid var(--border);
    padding: 5rem 0;
}
.case-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}
.case-item:first-child { padding-top: 0; }
.case-item:last-child { border-bottom: none; padding-bottom: 0; }

.case-meta {
    display: flex; flex-direction: column; gap: .6rem; padding-top: .2rem;
}
.case-n {
    font-size: .62rem; font-weight: 800; letter-spacing: 1.5px;
    color: var(--blue); display: block;
}
.case-tag {
    font-size: .62rem; font-weight: 600; letter-spacing: .5px;
    color: rgba(255,255,255,.2); text-transform: uppercase;
    writing-mode: vertical-rl; text-orientation: mixed;
    transform: rotate(180deg);
    line-height: 1.3;
}

.case-body h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 800; line-height: 1.2; letter-spacing: -.5px;
    margin-bottom: 1rem; word-break: break-word;
}
.case-lead {
    font-size: .93rem; color: rgba(255,255,255,.6);
    line-height: 1.75; margin-bottom: 1.75rem;
    max-width: 680px;
}
.case-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.case-detail-item {
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.02);
}
.case-detail-item strong {
    display: block;
    font-size: .62rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: .5rem;
}
.case-detail-item span {
    font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.65;
}

/* ── CERTS SECTION ── */
.certs-section {
    background: var(--navy);
    border-top: 1px solid var(--border);
    padding: 5rem 0;
    text-align: center;
}
.section-label-center {
    font-size: .68rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: rgba(255,255,255,.25);
    display: block; margin-bottom: 1rem;
}
.certs-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700; letter-spacing: -.75px;
    margin-bottom: .75rem; word-break: break-word;
}
.certs-sub {
    font-size: .9rem; color: rgba(255,255,255,.4);
    line-height: 1.75; max-width: 540px;
    margin: 0 auto 3rem;
}
.certs-strip {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 1rem; margin-bottom: 1.5rem;
}
.cstrip-badge {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: 1.2rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
    width: 120px;
    transition: border-color .18s, background .18s;
    text-align: center;
}
.cstrip-badge:hover {
    border-color: rgba(18,107,250,.4);
    background: rgba(18,107,250,.06);
}
.cstrip-badge img {
    width: 68px; height: 68px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    padding: 4px;
}
.cbadge-name {
    font-size: .75rem; font-weight: 700;
    color: rgba(255,255,255,.75); letter-spacing: .3px;
}
.cbadge-org {
    font-size: .62rem; color: rgba(255,255,255,.25);
    font-weight: 500;
}
.certs-credly-note {
    font-size: .72rem; color: rgba(255,255,255,.2);
}
.certs-strip-founder { margin-bottom: .75rem; }
.certs-strip-team { margin-bottom: 1.5rem; }
.cstrip-text {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    min-width: 100px;
    transition: border-color .18s, background .18s;
    text-align: center;
}
.cstrip-text:hover {
    border-color: rgba(18,107,250,.3);
    background: rgba(18,107,250,.04);
}
/* Org accent dot */
.cstrip-text::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}
[data-org="Cisco"]::before   { background: #049fd9; }
[data-org="ISC2"]::before    { background: #00a99d; }
[data-org="ISACA"]::before   { background: #0066cc; }
[data-org="Fortinet"]::before { background: #ee3124; }
[data-org="Aruba"]::before   { background: #ff6600; }
[data-org="Nutanix"]::before { background: #024da1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .case-details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .case-item { grid-template-columns: 1fr; gap: 1rem; }
    .case-meta { flex-direction: row; align-items: center; }
    .case-tag { writing-mode: horizontal-tb; transform: none; }
    .case-details { grid-template-columns: 1fr; }
    .cstrip-badge { width: 100px; padding: .9rem .7rem; }
    .cstrip-badge img { width: 52px; height: 52px; }
}
@media (max-width: 480px) {
    .work-hero h1 { font-size: 2rem; }
    .certs-strip { gap: .7rem; }
    .cstrip-badge { width: 90px; }
}
