/* ============================================================
   PROJECTS PAGE — CUSTOM ADD-ON STYLES
   Load AFTER css/style.css (and alongside aboutus-custom.css
   if both pages are live). Uses the same --bs-primary /
   --bs-secondary / --bs-light / --bs-dark / --bs-white
   variables already defined site-wide. Classes prefixed "i3-".
   ============================================================ */

/* ---- Lifecycle timeline ---- */
.i3-lifecycle {
    position: relative;
}

.i3-lifecycle::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(0, 0, 0, .1);
    transform: translateX(-50%);
}

.i3-lifecycle-item {
    position: relative;
    margin-bottom: 50px;
}

.i3-lifecycle-item:last-child {
    margin-bottom: 0;
}

.i3-lifecycle-dot-col {
    position: relative;
    z-index: 2;
}

.i3-lifecycle-dot {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 0 6px var(--bs-white), 0 8px 20px rgba(0, 0, 0, .12);
}

.i3-lifecycle-card {
    background: var(--bs-white);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    position: relative;
    transition: .4s;
}

.i3-lifecycle-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, .1);
    transform: translateY(-3px);
}

.i3-lifecycle-num {
    font-weight: 800;
    font-size: 13px;
    color: var(--bs-primary);
    letter-spacing: .1em;
    display: block;
    margin-bottom: 6px;
}

.i3-lifecycle-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--bs-dark);
}

.i3-lifecycle-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.i3-lifecycle-card ul li {
    font-size: 14px;
    color: #6c757d;
    padding: 5px 0;
    position: relative;
    padding-left: 18px;
}

.i3-lifecycle-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-secondary);
}

@media (max-width: 991.98px) {
    .i3-lifecycle::before { left: 32px; }
    .i3-lifecycle-dot { width: 52px; height: 52px; font-size: 20px; margin: 0; }
    .i3-lifecycle-item .row { flex-direction: row !important; }
    .i3-lifecycle-dot-col { order: -1 !important; flex: 0 0 auto !important; width: 64px !important; }
    .i3-lifecycle-card { margin-left: 12px; }
}

/* ---- Featured project rows (zig-zag, stamped value) ---- */
.i3-proj-row {
    background: var(--bs-white);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    overflow: visible;
    margin-bottom: 60px;
}

.i3-proj-row .row {
    --bs-gutter-x: 0;
}

.i3-proj-media {
    position: relative;
    min-height: 340px;
    border-radius: 14px 0 0 14px;
    overflow: hidden;
}

.i3-proj-row.i3-reverse .i3-proj-media {
    border-radius: 0 14px 14px 0;
}

.i3-proj-media img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    transition: transform .6s ease;
}

.i3-proj-row:hover .i3-proj-media img {
    transform: scale(1.06);
}

.i3-proj-media.i3-proj-nophoto {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.i3-proj-media.i3-proj-nophoto i {
    font-size: 96px;
    color: rgba(255, 255, 255, .25);
}

.i3-proj-thumbs {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
}

.i3-proj-thumbs img {
    width: 54px;
    height: 54px;
    min-height: 0;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--bs-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.i3-proj-body {
    padding: 44px 44px 40px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.i3-proj-badge {
    display: inline-block;
    background: var(--bs-light);
    color: var(--bs-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.i3-proj-body h3 {
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 14px;
}

.i3-proj-body p {
    font-size: 15px;
    color: #6c757d;
    margin-bottom: 0;
}

.i3-proj-stamp {
    position: absolute;
    top: -18px;
    right: 36px;
    background: var(--bs-white);
    border: 2px dashed var(--bs-primary);
    color: var(--bs-primary);
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .03em;
    transform: rotate(-6deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
    z-index: 3;
    white-space: nowrap;
}

.i3-proj-stamp span {
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .75;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .i3-proj-media, .i3-proj-row.i3-reverse .i3-proj-media {
        border-radius: 14px 14px 0 0;
        min-height: 240px;
    }
    .i3-proj-media img { min-height: 240px; }
    .i3-proj-body { padding: 40px 28px 30px; }
    .i3-proj-stamp { right: 24px; }
}

/* ---- Recent assignments log ---- */
.i3-log-card {
    background: var(--bs-white);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    padding: 10px 0;
}

.i3-log-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 22px 36px;
    border-bottom: 1px dashed rgba(0, 0, 0, .1);
    transition: background .3s;
}

.i3-log-item:last-child {
    border-bottom: none;
}

.i3-log-item:hover {
    background: var(--bs-light);
}

.i3-log-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.i3-log-item h6 {
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 4px;
}

.i3-log-item p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 6px;
}

.i3-log-tag {
    display: inline-block;
    background: var(--bs-light);
    color: var(--bs-primary);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 12px;
    border-radius: 20px;
}

@media (max-width: 575.98px) {
    .i3-log-item { padding: 20px; gap: 14px; }
}
