/* ==========================================================
   SHARPLINE — PROJECTS PAGE
   Extends the navy & gold theme from style.css
   (mirrors the shared patterns set up in about.css)
========================================================== */

body.projects-page main {
    margin: 0;
}

body.projects-page {
    background: var(--sp-navy-950);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.projects-page.sp-page-loaded {
    opacity: 1;
}


/* ==========================================================
   SHARED HELPERS
========================================================== */

.sp-container {
    width: min(var(--sp-container-width), var(--sp-container-max));
    margin: 0 auto;
}

.sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--sp-gold-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sp-eyebrow i {
    font-size: 10px;
    color: var(--sp-gold);
}

.sp-projects-main h2 {
    color: var(--sp-heading);
    font-family: var(--sp-serif);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.15;
}

.sp-projects-main p {
    color: var(--sp-text);
    font-size: 15px;
    line-height: 1.85;
}

.sp-section {
    position: relative;
    padding: 100px 0;
}


/* ==========================================================
   PAGE BANNER
========================================================== */

.sp-page-banner {
    position: relative;
    height: 340px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--sp-navy-950);
}

.sp-page-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.sp-page-banner-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 50% 30%,
            rgba(9, 26, 43, 0.05),
            rgba(3, 13, 24, 0.45) 72%),
        linear-gradient(180deg,
            rgba(3, 13, 24, 0.15) 0%,
            rgba(3, 13, 24, 0.35) 55%,
            rgba(3, 13, 24, 0.75) 100%);
}

.sp-page-banner-content {
    position: relative;
    z-index: 2;
    padding-top: 82px;
    text-align: center;
}

.sp-page-banner-content h1 {
    margin-bottom: 16px;
    color: var(--sp-heading);
    font-family: var(--sp-serif);
    font-size: 54px;
    font-weight: 600;
    animation: sp-banner-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-muted);
    font-size: 13px;
    font-weight: 500;
    animation: sp-banner-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.sp-breadcrumb a {
    color: var(--sp-text);
    transition: color 0.3s ease;
}

.sp-breadcrumb a:hover {
    color: var(--sp-gold-light);
}

.sp-breadcrumb i {
    font-size: 9px;
    color: var(--sp-gold);
}

.sp-breadcrumb span {
    color: var(--sp-gold-light);
}

@keyframes sp-banner-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================
   CHOOSE YOUR PROJECT — INTRO
========================================================== */

.sp-projects-heading {
    max-width: 640px;
    margin-bottom: 60px;
    text-align: center;
}

.sp-projects-heading .sp-eyebrow {
    justify-content: center;
    width: 100%;
}

.sp-projects-heading h2 {
    margin-bottom: 16px;
}

.sp-projects-heading p {
    margin: 0 auto;
}


/* ==========================================================
   PROJECT CARDS GRID
========================================================== */

.sp-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.sp-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--sp-border);
    background: linear-gradient(180deg, var(--sp-navy-900) 0%, var(--sp-navy-850) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.sp-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 166, 59, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

/* Diagonal gold shine sweep on hover */
.sp-project-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(255, 255, 255, 0.16) 45%,
            rgba(255, 215, 118, 0.28) 50%,
            rgba(255, 255, 255, 0.16) 55%,
            transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 3;
    transition: left 0.85s ease;
}

.sp-project-card:hover::after {
    left: 130%;
}

.sp-project-media {
    position: relative;
    height: 280px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f1ea;
}

.sp-project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-project-card:hover .sp-project-media img {
    transform: scale(1.05);
}

.sp-project-media-fallback {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.sp-project-media--fallback img {
    display: none;
}

.sp-project-media--fallback .sp-project-media-fallback {
    display: flex;
}

/* Sukrithi Pride — warm off-white tile with a script-style wordmark */
.sp-project-media--pride {
    background: linear-gradient(160deg, #f5f1e8 0%, #ece4d3 100%);
}

.sp-project-fallback-title {
    font-family: var(--sp-serif);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #4a4436;
    text-transform: uppercase;
}

.sp-project-fallback-script {
    font-family: var(--sp-serif);
    font-style: italic;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(90deg, #e8632c, #f2a33c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sp-project-fallback-sub {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #6b6455;
    text-transform: uppercase;
}

/* Fortune Towers — black tile with gold wordmark */
.sp-project-media--fortune {
    background: linear-gradient(160deg, #0c0c0c 0%, #1a1a1a 100%);
}

.sp-project-fallback-icon {
    margin-bottom: 12px;
    font-size: 30px;
    color: var(--sp-gold);
}

.sp-project-fallback-title--fortune {
    color: var(--sp-gold-light);
    font-size: 26px;
    letter-spacing: 0.12em;
}

.sp-project-fallback-sub--fortune {
    margin-top: 4px;
    font-family: var(--sp-serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--sp-gold);
    text-transform: uppercase;
}

.sp-project-body {
    display: flex;
    flex-direction: column;
    padding: 32px 32px 30px;
}

.sp-project-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--sp-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sp-project-body h3 {
    margin-bottom: 12px;
    color: var(--sp-heading);
    font-family: var(--sp-serif);
    font-size: 26px;
    font-weight: 600;
}

.sp-project-body p {
    margin-bottom: 20px;
    color: var(--sp-text);
    font-size: 14.5px;
    line-height: 1.75;
}

.sp-project-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin-bottom: 24px;
}

.sp-project-chips li {
    padding: 7px 16px;
    border: 1px solid var(--sp-border-light);
    border-radius: 999px;
    color: var(--sp-muted);
    font-size: 12px;
    font-weight: 500;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.sp-project-card:hover .sp-project-chips li {
    border-color: rgba(217, 166, 59, 0.35);
    color: var(--sp-text);
}

.sp-project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--sp-heading);
    font-size: 14px;
    font-weight: 600;
}

.sp-project-link i {
    font-size: 12px;
    color: var(--sp-gold);
    transition: transform 0.3s ease;
}

.sp-project-link:hover {
    color: var(--sp-gold-light);
}

.sp-project-link:hover i {
    transform: translateX(5px);
}


/* ==========================================================
   SCROLL-REVEAL ANIMATIONS
   (shared pattern with about.css — driven by script.js)
========================================================== */

[data-reveal] {
    opacity: 0;
    will-change: opacity, transform, filter;
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade"] {
    transform: translateY(26px);
}

[data-reveal="left"] {
    transform: translateX(-32px);
}

[data-reveal="right"] {
    transform: translateX(32px);
}

[data-reveal].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: none;
}

[data-reveal-list] li,
[data-reveal-group] > * {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal-list].is-visible li,
[data-reveal-group].is-visible > * {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    [data-reveal],
    [data-reveal-list] li,
    [data-reveal-group] > *,
    .sp-page-banner-content h1,
    .sp-page-banner-content .sp-breadcrumb {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    body.projects-page {
        opacity: 1 !important;
        transition: none !important;
    }
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1024px) {

    .sp-projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sp-projects-main h2 {
        font-size: 34px;
    }

    .sp-page-banner-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 900px) {

    .sp-page-banner {
        height: 280px;
    }

    .sp-section {
        padding: 70px 0;
    }
}

@media (max-width: 640px) {

    .sp-project-body {
        padding: 26px 22px 26px;
    }

    .sp-project-media {
        height: 220px;
    }

    .sp-page-banner-content h1 {
        font-size: 34px;
    }
}

/* Tame reveal slide on mobile — avoids the jittery
   "moving" feel of a horizontal slide on narrow screens */
@media (max-width: 768px) {
    [data-reveal="left"],
    [data-reveal="right"] {
        transform: translateY(18px);
    }
}
