/* =========================
   Sites by Rohan - Work Section
   This file is separate from your main website CSS.
========================= */

.sbr-work-section {
    width: 100%;
    padding: 90px 8%;
    scroll-margin-top: 90px;
    position: relative;
}

.sbr-work-section::before {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    width: 650px;
    height: 650px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(184,32,230,0.12), transparent 65%);
    pointer-events: none;
    z-index: -1;
}

.sbr-work-header {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.sbr-work-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 18px;
    font-family: "Ovo", serif;
    color: #7a7a7a;
}

.sbr-work-header h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    font-family: "Ovo", serif;
    font-weight: 400;
    color: #111;
}

.sbr-work-header p {
    margin-top: 18px;
    color: #666;
    font-size: 18px;
    line-height: 1.7;
}

.sbr-project-list {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.sbr-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.sbr-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.14);
    border-color: rgba(184, 32, 230, 0.25);
}

.sbr-project-image {
    margin: 18px;
    overflow: hidden;
    border-radius: 22px;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sbr-browser-bar {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: linear-gradient(180deg, #fbfbfb, #eeeeee);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sbr-browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.sbr-browser-bar span:nth-child(1) {
    background: #ff5f57;
}

.sbr-browser-bar span:nth-child(2) {
    background: #ffbd2e;
}

.sbr-browser-bar span:nth-child(3) {
    background: #28c840;
}

.sbr-browser-bar small {
    margin-left: 12px;
    color: #777;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sbr-project-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.sbr-project-card:hover .sbr-project-image img {
    transform: scale(1.055);
}

.sbr-project-content {
    padding: 8px 26px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
}

.sbr-project-number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b820e6, #da7d20);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    margin-top: 4px;
}

.sbr-project-content h3 {
    font-size: 25px;
    line-height: 1.2;
    color: #111;
    font-weight: 700;
    margin: 0;
}

.sbr-project-content p {
    color: #666;
    margin: 10px 0 0;
    line-height: 1.65;
    font-size: 15.5px;
}

.sbr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.sbr-tags span {
    font-size: 13px;
    line-height: 1;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f4f4f4;
    color: #555;
}

.sbr-view-link {
    grid-column: 2;
    margin-top: 18px;
    width: fit-content;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    position: relative;
}

.sbr-view-link::after {
    content: "↗";
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.25s ease;
}

.sbr-project-card:hover .sbr-view-link::after {
    transform: translate(3px, -3px);
}

/* Dark mode support if your site adds .dark to html/body */
.dark .sbr-work-header h2,
.dark .sbr-project-content h3,
.dark .sbr-view-link {
    color: #fff;
}

.dark .sbr-work-eyebrow,
.dark .sbr-work-header p,
.dark .sbr-project-content p {
    color: rgba(255, 255, 255, 0.72);
}

.dark .sbr-project-card {
    background: rgba(18, 18, 28, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.dark .sbr-project-image {
    background: #111;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .sbr-browser-bar {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .sbr-tags span {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
    .sbr-project-list {
        grid-template-columns: 1fr;
    }

    .sbr-work-section {
        padding: 70px 6%;
    }
}

@media (max-width: 560px) {
    .sbr-project-card {
        border-radius: 24px;
    }

    .sbr-project-image {
        margin: 12px;
        border-radius: 18px;
    }

    .sbr-project-content {
        padding: 8px 20px 24px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sbr-project-number {
        width: 38px;
        height: 38px;
    }

    .sbr-view-link {
        grid-column: 1;
    }
}




/* Coming Soon Card */

.sbr-coming-preview{
    width:100%;
    aspect-ratio:16/10;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background:linear-gradient(135deg,#fafafa,#efefef);
    color:#888;
}

.dark .sbr-coming-preview{
    background:linear-gradient(135deg,#1b1b24,#111118);
    color:#aaa;
}

.sbr-plus{
    font-size:80px;
    line-height:1;
    font-weight:200;
    margin-bottom:12px;
    background:linear-gradient(135deg,#b820e6,#da7d20);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}