/* ================================================
   REFERENCE PAGE – PREMIUM STYLES
   ================================================ */

/* ---- HERO ---- */
.rf-hero {
    position: relative;
    overflow: hidden;
    background: #0a1440;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
}

.rf-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rf-hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: rfBannerZoom 30s ease-in-out infinite alternate;
}

/* Light overlay so text stays readable over the photo */
.rf-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(2, 10, 46, 0.30) 0%,
            rgba(8, 32, 104, 0.22) 40%,
            rgba(11, 83, 192, 0.18) 70%,
            rgba(2, 10, 46, 0.45) 100%);
    z-index: 1;
}

@keyframes rfBannerZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.rf-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
}

.rf-m1 {
    width: 450px;
    height: 450px;
    background: rgba(0, 212, 255, 0.15);
    top: -20%;
    right: -5%;
    animation: rfFloat1 8s ease-in-out infinite alternate;
}

.rf-m2 {
    width: 300px;
    height: 300px;
    background: rgba(100, 180, 255, 0.10);
    bottom: -15%;
    left: -5%;
    animation: rfFloat2 10s ease-in-out infinite alternate;
}

@keyframes rfFloat1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-25px, 15px) scale(1.12);
    }
}

@keyframes rfFloat2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15px, -10px) scale(1.08);
    }
}

.rf-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 70%);
}

.rf-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.rf-hero .breadcrumb,
.rf-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.rf-hero .breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.rf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
}

.rf-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
    animation: rfPulse 2s infinite;
}

@keyframes rfPulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 212, 255, 0);
    }
}

.rf-hero h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 16px;
}

.rf-grad-text {
    background: linear-gradient(135deg, #fff, #82e4ff, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rf-hero-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
    max-width: 600px;
}

.rf-hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 28px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.rf-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.rf-stat span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.rf-stat-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.12);
}

/* Filter tabs */
.rf-filter-tabs {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.rf-ftab {
    padding: 9px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(12px);
}

.rf-ftab:hover,
.rf-ftab.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.rf-ftab.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ---- PROJECT CARDS ---- */
@keyframes rfFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rf-project-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 40, 85, 0.06);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(10, 27, 51, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rf-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 56px rgba(11, 94, 215, 0.12);
    border-color: rgba(11, 94, 215, 0.10);
}

/* Visual / placeholder */
.rf-proj-visual {
    position: relative;
    background: linear-gradient(145deg, rgba(11, 94, 215, 0.04) 0%, rgba(0, 179, 255, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    overflow: hidden;
}

.rf-proj-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rf-project-card:hover .rf-proj-img {
    transform: scale(1.06);
}

.rf-proj-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(11, 94, 215, 0.25);
}

.rf-proj-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.5;
}

.rf-proj-placeholder span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rf-proj-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: 10px;
    background: var(--grad);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(11, 94, 215, 0.30);
}

.rf-badge-green {
    background: linear-gradient(135deg, #0a8f3e 0%, #10c962 100%);
    box-shadow: 0 4px 12px rgba(10, 143, 62, 0.30);
}

.rf-badge-purple {
    background: linear-gradient(135deg, #6c3ed0 0%, #9465e5 100%);
    box-shadow: 0 4px 12px rgba(108, 62, 208, 0.30);
}

/* Project body */
.rf-proj-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
}

.rf-proj-body h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text);
}

.rf-proj-body>p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 18px;
}

/* Specs grid */
.rf-proj-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.rf-spec {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(11, 94, 215, 0.03);
    border: 1px solid rgba(11, 94, 215, 0.06);
}

.rf-spec-k {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.rf-spec-v {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

/* Tags */
.rf-proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.rf-proj-tags span {
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(11, 94, 215, 0.05);
    border: 1px solid rgba(11, 94, 215, 0.08);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.rf-project-card:hover .rf-proj-tags span {
    background: rgba(11, 94, 215, 0.08);
    border-color: rgba(11, 94, 215, 0.14);
}

/* ---- CTA ---- */
.rf-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #020a2e 0%, #082068 35%, #0b53c0 65%, #0e7fe8 90%);
    padding: 72px 0;
}

.rf-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rf-cta-m1 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.14);
    top: -30%;
    right: -5%;
    filter: blur(80px);
    animation: rfFloat1 8s ease-in-out infinite alternate;
}

.rf-cta-m2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(120, 180, 255, 0.10);
    bottom: -20%;
    left: -5%;
    filter: blur(80px);
    animation: rfFloat2 10s ease-in-out infinite alternate;
}

.rf-cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.rf-cta h2 {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900;
    margin: 0 0 12px;
}

.rf-cta p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 28px;
}

.rf-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.rf-btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #e8f4ff 100%);
    color: #0b47a8;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rf-btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.rf-btn-main svg {
    width: 18px;
    height: 18px;
}

.rf-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rf-btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
}

.rf-btn-outline svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.rf-btn-outline:hover svg {
    transform: translateX(4px);
}

/* ---- CLIENTS SECTION ---- */
.rf-clients {
    padding: 80px 0;
    background: linear-gradient(180deg,
            rgba(11, 94, 215, 0.02) 0%,
            rgba(0, 179, 255, 0.04) 50%,
            rgba(11, 94, 215, 0.02) 100%);
}

.rf-clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.rf-client-card {
    padding: 18px 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(15, 40, 85, 0.06);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(10, 27, 51, 0.04);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 140px;
}

.rf-client-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.rf-client-card:hover img {
    transform: scale(1.08);
}

.rf-client-card span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.3;
    display: block;
}

.rf-client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(11, 94, 215, 0.12);
    border-color: rgba(11, 94, 215, 0.12);
}

.rf-client-card:hover span {
    color: var(--primary);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
    .rf-hero {
        padding: 120px 0 48px;
        min-height: 60vh;
    }

    .rf-project-card {
        grid-template-columns: 240px 1fr;
    }

    .rf-clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 720px) {
    .rf-project-card {
        grid-template-columns: 1fr;
    }

    .rf-proj-visual {
        min-height: 160px;
    }
}

@media (max-width: 560px) {
    .rf-hero {
        padding: 0 0 36px;
        min-height: auto;
        flex-direction: column;
    }

    .rf-hero-bg {
        position: relative;
        width: 100%;
        aspect-ratio: 16/9;
    }

    .rf-hero-banner-img {
        object-fit: contain;
        animation: none;
    }

    .rf-hero-content {
        padding-top: 28px;
    }

    .rf-clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rf-client-card {
        padding: 14px 10px 10px;
        min-height: 110px;
        gap: 6px;
    }

    .rf-client-card img {
        width: 56px;
        height: 56px;
    }

    .rf-client-card span {
        font-size: 10px;
    }

    .rf-hero h1 {
        font-size: 26px;
    }

    .rf-hero-stats {
        gap: 20px;
    }

    .rf-stat-sep {
        display: none;
    }

    .rf-filter-tabs {
        gap: 6px;
    }

    .rf-ftab {
        padding: 7px 14px;
        font-size: 12px;
    }

    .rf-proj-body {
        padding: 20px;
    }

    .rf-proj-body h3 {
        font-size: 17px;
    }

    .rf-proj-specs {
        grid-template-columns: 1fr;
    }

    .rf-cta-btns {
        flex-direction: column;
    }

    .rf-cta-btns .rf-btn-main,
    .rf-cta-btns .rf-btn-outline {
        width: 100%;
        justify-content: center;
    }
}