/* ================================================================
   RISEFRAME DIGITAL — Custom CSS
   Version: 2.0 (Clean)
   ================================================================ */
/* ================================================================
   GLOBAL Z-INDEX FIXES (above WebGL canvas)
   ================================================================ */
/* Header — fixed at top, never moves */
header.stick,
header.stick.sticky-header,
body.sticky header.stick {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1999999 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.4s ease, opacity 0.4s ease !important;
}

/* Header hidden when scrolling down */
header.stick.rf-header-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
}

#rf-burger {
    position: relative !important;
    z-index: 2000000 !important;
}

@media (min-width: 1025px) {
    #rf-burger {
        display: none !important;
    }
}

/* ================================================================
   SCROLL-TO-TOP BUTTON (mobile & tablet only)
   ================================================================ */
#rf-scroll-top {
    display: none;

    /* hidden by default, shown via JS + media query */
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--rf-purple);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(147, 73, 172, 0.55);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#rf-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 1024px) {
    #rf-scroll-top {
        display: flex;
    }
}

/* ===== CSS VARIABLES ===== */
:root {
    --rf-purple: #9349ac;
    --rf-purple-light: #a85bc2;
    --rf-bg: #1a1a1a;
    --transition-speed: 0.3s;
}

/* ================================================================
   1. HEADER & NAVIGATION
   ================================================================ */
.aivora-menu-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 !important;
}

.aivora-menu-container .logo img {
    height: 150px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: auto !important;
}

/* Kill the template's padding-top on the inner wrapper */
header .logo-menu-inner,
header .logo-menu-wrapper,
header .aivora-menu-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.aivora-nav {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aivora-nav li {
    margin: 0 !important;
    padding: 0 !important;
    width: max-content !important;
}

.aivora-nav li a::before,
.aivora-nav li a::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

.aivora-pill {
    width: max-content !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.aivora-pill:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.aivora-pill-active {
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px 22px 6px !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.aivora-active-dot {
    background-color: #a147b3 !important;
    height: 6px !important;
    width: 6px !important;
    border-radius: 50% !important;
    display: block !important;
}

.aivora-join-btn {
    background: #a147b3 !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 13px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.aivora-join-btn:hover {
    background: #b366ff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 15px rgba(179, 102, 255, 0.6) !important;
    color: #ffffff !important;
}

/* ================================================================
   2. MOBILE SIDE PANEL MENU
   ================================================================ */
#menu-mobile-rise {
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    right: -300px !important;
    width: 300px !important;
    height: 100vh !important;
    background: #111111 !important;
    transition: right 0.4s ease-in-out !important;
    z-index: 2000001 !important;
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow-y: auto !important;
}

#menu-mobile-rise.ouvert {
    right: 0 !important;
    left: auto !important;
}

/* ================================================================
   MOBILE MENU — Inner Layout & Buttons
   ================================================================ */
.rf-mobile-menu {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Header row: logo + close button */
.rf-mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rf-mm-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.rf-mm-close {
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 22px !important;
    cursor: pointer !important;
    padding: 6px !important;
    line-height: 1 !important;
}

/* Nav buttons container */
.rf-mm-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 20px;
    flex: 1;
}

/* Individual nav button */
.rf-mm-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.rf-mm-btn:hover,
.rf-mm-btn:active {
    background: rgba(161, 71, 179, 0.15) !important;
    border-color: #a147b3 !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

/* Contact button — highlighted */
.rf-mm-btn-cta {
    background: #a147b3 !important;
    border-color: #a147b3 !important;
    font-weight: 700 !important;
    margin-top: 6px;
}

.rf-mm-btn-cta:hover {
    background: #b366cc !important;
    border-color: #b366cc !important;
    transform: translateX(4px);
}

.rf-mm-icon {
    font-size: 16px;
    width: 18px;
    text-align: center;
    opacity: 0.85;
}

/* Footer */
.rf-mm-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rf-mm-footer span {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rf-mm-footer a {
    color: #a147b3 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
}

/* Backdrop when menu is open */
.rf-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000000;
}

.rf-menu-backdrop.active {
    display: block;
}

/* ================================================================
   3. PILL BADGE (Portfolios CTA)
   ================================================================ */
.pill-badge-custom {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-family: sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    text-decoration: none !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}

.pill-badge-custom:hover {
    border-color: #a147b3 !important;
    background-color: rgba(161, 71, 179, 0.1) !important;
    color: #ffffff !important;
}

/* ================================================================
   4. VIDEO SECTION
   ================================================================ */
.video-soft-bottom {
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ================================================================
   5. LOGO SHOWCASE / CLIENTS CAROUSEL
   ================================================================ */
.logo-showcase-wrapper {
    position: relative;
    max-width: 100%;
    margin: 60px auto;
    font-family: sans-serif;
}

.logos-container {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    padding: 50px 0;
}

@media (min-width: 768px) {
    .logos-container {
    }
}

.showcase-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    z-index: 10;
    white-space: nowrap;
}

.purple-text {
    color: #a147b3;
    font-weight: bold;
}

.purple-dot {
    width: 8px;
    height: 8px;
    background-color: #a147b3;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(161, 71, 179, 0.8);
    display: inline-block;
}

.logos-track {
    display: flex;
    width: max-content;
    animation: infiniteScroll 25s linear infinite;
}


.logos-slide {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
}

.logos-slide img {
    height: 35px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logos-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ================================================================
   6. PORTFOLIO GRID
   ================================================================ */
.aivora-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: min(800px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.portfolio-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(155, 77, 202, 0.4);
}

.portfolio-img,
.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.portfolio-video {
    opacity: 0;
    z-index: 1;
}

.portfolio-card:hover .portfolio-img {
    opacity: 0;
}

.portfolio-card:hover .portfolio-video {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* ── Hover hint badge (tablet & desktop only) ── */
.portfolio-hover-hint {
    display: none; /* hidden on mobile by default */
}

@media (hover: hover) {
    .portfolio-hover-hint {
        display: flex;
        align-items: center;
        gap: 6px;
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 3;
        background: rgba(161, 71, 179, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        color: #fff;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        padding: 5px 11px;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        animation: hint-pulse 2.4s ease-in-out infinite;
    }

    .portfolio-hover-hint .hint-icon {
        font-size: 8px;
        opacity: 0.9;
    }

    .portfolio-card:hover .portfolio-hover-hint {
        opacity: 0;
        transform: scale(0.85);
        animation: none;
    }

    @keyframes hint-pulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(161, 71, 179, 0.5); }
        50%       { box-shadow: 0 0 0 6px rgba(161, 71, 179, 0); }
    }
}

.project-category {
    color: #fff;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.project-title {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
}

.view-project-btn {
    display: inline-block;
    padding: 7px 18px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: 0.3s;
}

.view-project-btn:hover {
    background: #fff !important;
    color: #000 !important;
}

/* ================================================================
   7. "VIEW ALL PORTFOLIOS" BUTTON
   ================================================================ */
.btn-portfolios {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-portfolios:hover {
    border-color: #9b4dca;
    color: #ffffff;
    background-color: rgba(155, 77, 202, 0.05);
    box-shadow: 0 0 15px rgba(155, 77, 202, 0.5);
    transform: translateY(-2px);
}

/* ================================================================
   8. DEVICE MOCKUP SECTION
   ================================================================ */
@media (max-width:329px) {
    .rf-hero-dynamic {
        background-color: var(--rf-bg) !important;
        color: #fff !important;
        font-family: 'Inter', sans-serif !important;
        width: 100% !important;
        position: relative !important;
        padding: 80px 0 40px 0 !important;
        display: block !important;
        overflow: hidden !important;
    }
}

.rf-hero-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

.rf-hero-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
}

.rf-hero-left {
    flex: 1.3 !important;
    text-align: left !important;
    z-index: 10 !important;
}

.rf-hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 25px !important;
}

.rf-word-carousel {
    display: inline-block !important;
    position: relative !important;
    color: var(--rf-purple) !important;
    min-width: 280px !important;
    height: 1.2em !important;
    vertical-align: bottom !important;
}

.rf-dyn-word {
    position: absolute !important;
    left: 0 !important;
    opacity: 0 !important;
    transform: translateY(10px) !important;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    white-space: nowrap !important;
}

.rf-dyn-word.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.rf-dyn-word.out {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

.rf-hero-desc {
    font-size: 1.1rem !important;
    color: #aaa !important;
    line-height: 1.6 !important;
    margin-bottom: 40px !important;
    max-width: 480px !important;
}

.rf-btn-primary {
    background: var(--rf-purple) !important;
    color: #fff !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
    display: inline-block !important;
}

.rf-btn-primary:hover {
    background: var(--rf-purple-light) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(147, 73, 172, 0.3) !important;
    color: #fff !important;
}

.rf-hero-right {
    flex: 1.2 !important;
    position: relative !important;
    height: 550px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.rf-visual-box {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    opacity: 0 !important;
    transition: all var(--transition-speed) ease-in-out !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.rf-visual-box.active {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.rf-visual-box img {
    max-width: 100% !important;
    height: auto !important;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)) !important;
}

.mac-mockup {
    width: 650px !important;
}

.iphone-mockup {
    width: 420px !important;
}

.ipad-mockup {
    width: 520px !important;
}

/* ================================================================
   9. SERVICES SECTION
   ================================================================ */
.riseframe-services {
    background: transparent;
    color: #fff;
    padding: 80px 20px;
    font-family: inherit;
}

.rf-services-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.rf-services-header {
    text-align: center;
    margin-bottom: 50px;
}

.rf-services-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.rf-services-title span {
    color: #9349ac;
}

.rf-services-subtitle {
    color: #888;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.rf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.rf-service-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.rf-service-card.rf-featured {
    border-color: #9349ac;
    background: #111;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(147, 73, 172, 0.2);
    z-index: 2;
}

.rf-service-card.rf-featured .rf-quote-btn {
    background: #9349ac;
}

/* When grid is hovered, dim the featured card unless it's the one hovered */
.rf-services-grid:hover .rf-service-card.rf-featured {
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.05);
    background: #0a0a0a;
    box-shadow: none;
    z-index: 1;
}

.rf-services-grid:hover .rf-service-card.rf-featured .rf-quote-btn {
    background: rgba(255,255,255,0.05);
}

/* The card being hovered takes focus */
.rf-services-grid .rf-service-card:hover {
    transform: scale(1.08) translateY(-5px) !important;
    border-color: #9349ac !important;
    background: #111 !important;
    box-shadow: 0 15px 40px rgba(147, 73, 172, 0.3) !important;
    z-index: 10 !important;
}

.rf-services-grid .rf-service-card:hover .rf-quote-btn {
    background: #9349ac !important;
}

.rf-badge-container {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.rf-popular-badge {
    background-color: #9349ac;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.rf-services-grid:hover .rf-service-card.rf-featured:not(:hover) .rf-popular-badge {
    background-color: #555;
    color: #ccc;
}

.rf-card-top {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 10px;
}

.rf-pack-number {
    font-size: 1rem;
    font-weight: 900;
    color: #9349ac;
    margin-right: 12px;
}

.rf-pack-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.rf-pack-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 30px;
    min-height: 70px;
}

.rf-pack-features {
    list-style: none;
    padding: 25px 0 0 0;
    margin: 0 0 35px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.rf-pack-features li {
    color: #eee;
    padding: 10px 0;
    font-size: 0.85rem;
    position: relative;
    padding-left: 28px;
}

.rf-pack-features li::before {
    content: "✓";
    color: #9349ac;
    position: absolute;
    left: 0;
    font-weight: 900;
    font-size: 1.1rem;
}

.rf-quote-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
    margin-top: auto;
}

.rf-media-addon {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px 45px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease;
}

.rf-media-addon:hover {
    border-color: #9349ac;
    transform: scale(1.01);
}

.rf-media-icon img {
    width: 60px;
    height: 60px;
}

.rf-media-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
}

.rf-media-text p {
    margin: 0 0 10px 0;
    color: #888;
    font-size: 0.95rem;
}

.rf-media-note {
    color: #555;
    font-size: 0.8rem;
    font-style: italic;
}

.rf-media-btn {
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 12px;
    border: 1px solid #9349ac;
    color: #9349ac;
    font-weight: 700;
    transition: 0.3s;
}

.rf-media-btn:hover {
    background: #9349ac;
    color: #fff;
}

/* ================================================================
   10. EXPERTISE SECTION (Flip Cards)
   ================================================================ */
.riseframe-expertise {
    background: transparent;
    color: #fff;
    padding: 60px 20px;
    font-family: inherit;
}

.rf-container {
    max-width: 900px;
    margin: 0 auto;
}

.rf-header {
    text-align: center;
    margin-bottom: 40px;
}

.rf-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.rf-title span {
    color: #9349ac;
}

.rf-subtitle {
    color: #888;
    margin-bottom: 35px;
}

.rf-tabs {
    display: inline-flex;
    background: rgba(255,255,255,0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.rf-tab {
    background: transparent;
    color: #777;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    font-size: 14px;
}

.rf-tab.active {
    background: #9349ac;
    color: #fff;
}

.rf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.rf-hidden {
    display: none;
}

.rf-card-flip {
    background-color: transparent;
    height: 50px;
    perspective: 1000px;
    border-radius: 12px;
}

.rf-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.rf-card-flip:hover .rf-card-inner {
    transform: rotateX(180deg);
    cursor: pointer;
}

.rf-card-front,
.rf-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    padding: 0 15px;
}

.rf-card-front {
    background: #2a2a2a;
    color: #fff;
}

.rf-card-flip:hover .rf-card-front {
    border-color: #9349ac;
}

.rf-card-back {
    background-color: #9349ac;
    color: #fff;
    transform: rotateX(180deg);
    text-align: left;
}

.rf-card-back p {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.rf-icon-wrapper {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rf-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rf-card-front h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

/* ================================================================
   11. TESTIMONIALS SECTION
   ================================================================ */
.rf-cinematic-testi {
    background-color: transparent;
    color: #fff;
    font-family: inherit;
    overflow: hidden;
    position: relative;
}

.rf-sec-sub {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
}

.rf-giant-quote {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 35rem;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(147, 73, 172, 0.04);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.rf-testi-wrapper {
    position: relative;
}

.rf-cinematic-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.rf-quote-text {
    font-size: 2rem;
    line-height: 1.5;
    color: #fff;
    font-weight: 300;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.rf-author-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid rgba(147, 73, 172, 0.3);
    padding: 3px;
}

.rf-author-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #fff;
}

.rf-author-role {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rf-accent {
    color: #9349ac;
    font-weight: bold;
}

.rf-cine-controls {
    z-index: 2;
    position: relative;
}

.rf-btn-prev,
.rf-btn-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rf-btn-prev:hover,
.rf-btn-next:hover {
    background: #9349ac;
    border-color: #9349ac;
    transform: scale(1.05);
}

.rf-cine-pagination {
    font-size: 0.95rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 2px;
    font-family: monospace;
    width: auto !important;
}

/* ================================================================
   12. CTA SECTION
   ================================================================ */
.wrapper-right {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 20px 0;
}

.contact-box-simple {
    display: inline-block;
    padding: 14px 30px;
    background-color: #3da1e3;
    color: #ffffff;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.contact-box-simple:hover {
    transform: scale(1.05);
}

/* ================================================================
   13. MOBILE RESPONSIVE — max-width: 767px
   ================================================================ */
@media (max-width: 1024px) {
    .aivora-join-btn {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Header */
    header.stick {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Hide sidebar on mobile */
    .resume-sidebar,
    .resume-info.round50 {
        display: none !important;
    }

    /* Full width content */
    .resume-wrapper,
    .resume-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
    }

    .resume-content {
        flex: 0 0 100% !important;
    }

    .theiaStickySidebar {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Center intro content */
    .intro-box,
    .intro-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .intro-box {
        margin-top: -40px !important;
    }

    .intro-btns {
        margin-top: 20px !important;
    }

    .intro-btns,
    .rf-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .rf-actions a,
    .pill-badge-custom {
        width: 260px !important;
        margin: 10px auto !important;
        justify-content: center !important;
    }

    /* Remove container margin */
    .w-100.pt-60 .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Remove phantom left border */
    .resume-wrapper::before,
    .resume-wrapper::after,
    .resume-content::before,
    .resume-content::after,
    .intro-wrapper::before,
    .intro-wrapper::after,
    .fun-fact-boxes::before,
    .fun-fact-boxes::after {
        display: none !important;
        content: none !important;
        width: 0 !important;
        background: transparent !important;
        border: none !important;
    }

    .resume-wrapper,
    .resume-content,
    .theiaStickySidebar,
    .intro-wrapper,
    .fun-fact-boxes,
    .fun-fact-boxes .row,
    .col-md-6,
    .col-sm-6,
    .col-lg-3 {
        border-left: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    /* Fun fact boxes — compact squares */
    .fun-fact-boxes,
    .fun-fact-boxes .row,
    .res-box,
    .about-info-wrap {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }

    .fun-fact-boxes .row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .fun-fact-boxes .row > div {
        width: auto !important;
        flex: 0 0 auto !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
    }

    .fun-fact-box {
        width: 140px !important;
        padding: 12px 14px !important;
        gap: 10px !important;
    }

    .ff-icon-wrap {
        width: 32px !important;
        height: 32px !important;
    }

    .ff-icon-wrap svg {
        width: 14px !important;
        height: 14px !important;
    }

    .ff-label {
        font-size: 8px !important;
        letter-spacing: 1px !important;
    }

    .ff-value {
        font-size: 0.95rem !important;
    }

    /* Portfolio — single column */
    .aivora-portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    /* Device mockup — stacked layout */
    .rf-hero-content {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
    }

    .rf-hero-left {
        display: contents !important;
    }

    .rf-hero-title {
        order: 1 !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .rf-hero-desc {
        order: 2 !important;
        text-align: center !important;
        margin-top: -20px !important;
    }

    .rf-word-carousel {
        display: inline-block !important;
        width: 180px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }

    .rf-dyn-word {
        width: 100% !important;
        left: 50% !important;
        text-align: center !important;
        transform: translateX(-50%) translateY(10px) !important;
    }

    .rf-dyn-word.active {
        transform: translateX(-50%) translateY(0) !important;
    }

    .rf-dyn-word.out {
        transform: translateX(-50%) translateY(-10px) !important;
    }

    .rf-hero-right {
        order: 3 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: 350px !important;
        margin-top: 10px !important;
        width: 100% !important;
        position: relative !important;
    }

    .rf-hero-actions {
        order: 4 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 60px !important;
        margin-bottom: 40px !important;
    }

    .rf-visual-container,
    .rf-visual-box {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .mac-mockup,
    .ipad-mockup {
        margin: 0 auto !important;
        width: 90% !important;
        max-width: 300px !important;
        height: auto !important;
        transform: scale(1.2) !important;
    }

    .iphone-mockup {
        margin: 0 auto !important;
        width: 75% !important;
        max-width: 260px !important;
        height: auto !important;
        transform: scale(1.2) !important;
    }

    /* Services — stacked */
    .rf-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rf-service-card.rf-featured {
        transform: scale(1);
    }

    .rf-services-grid:hover .rf-service-card.rf-featured {
        transform: scale(1);
        border-color: #9349ac;
        background: #111;
        box-shadow: 0 10px 30px rgba(147, 73, 172, 0.2);
    }

    .rf-services-grid:hover .rf-service-card.rf-featured .rf-quote-btn {
        background: #9349ac;
    }

    .rf-service-card:hover {
        transform: translateY(-5px) !important;
    }

    .rf-media-addon {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    /* Expertise — single column */
    .rf-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials */
    .rf-quote-text {
        font-size: 1.4rem;
    }

    .rf-giant-quote {
        font-size: 20rem;
        top: 40%;
    }

    /* Logo showcase */
    .logos-slide {
        gap: 40px;
        padding: 0 20px;
    }

    .logos-slide img {
        height: 25px;
    }

    /* Showcase badge — mobile: centered pill, smaller than logos box */
    .logo-showcase-wrapper {
        margin: 40px auto;
    }

    .showcase-badge {
        font-size: 11px !important;
        padding: 6px 14px !important;
        gap: 7px !important;
    }

    .showcase-badge .purple-dot {
        width: 6px !important;
        height: 6px !important;
    }

    /* ── GLOBAL overflow fix ── */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .sv-section,
    .sv-container,
    .sv-comp-mobile,
    .sv-comp-tabs-wrap,
    .sv-comp-m-table {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .sv-comp-tabs-wrap {
        overflow-x: auto !important;  /* tabs can still scroll */
    }
    .sv-title,
    .sv-subtitle {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* ── SERVICES PAGE ── */
    .sv-hero {
        padding: 100px 20px 50px !important;
        text-align: center !important;
    }
    .sv-hero-title {
        font-size: 2.2rem !important;
    }
    .sv-hero-sub {
        font-size: 1rem !important;
    }
    .sv-hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .sv-hero-actions a,
    .sv-hero-actions button {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }
    .sv-section {
        padding: 0 16px 60px !important;
    }
    .sv-cta-wrap {
        padding: 50px 20px !important;
        text-align: center !important;
        border-radius: 16px !important;
    }
    .sv-cta-title {
        font-size: 1.9rem !important;
    }
    .sv-cta-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .sv-cta-actions a,
    .sv-cta-actions button {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }
    .sv-host-badge,
    .sv-eyebrow,
    .ab-eyebrow {
        font-size: 0.8rem !important;
    }

    /* ── PORTFOLIO PAGE ── */
    .pf-hero {
        padding: 100px 20px 50px !important;
    }
    .pf-section {
        padding: 0 16px 60px !important;
    }
    .pf-stats {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }
    .pf-stat-item {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        padding: 14px 20px !important;
        justify-content: center !important;
    }
    .pf-stat-item:last-child {
        border-bottom: none !important;
    }
    .pf-cta-strip {
        padding: 44px 20px !important;
        text-align: center !important;
        border-radius: 16px !important;
    }
    .pf-cta-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .pf-cta-actions a,
    .pf-cta-actions button {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }

    /* ── CONTACT PAGE ── */
    .ct-hero {
        padding: 100px 20px 50px !important;
    }
    .ct-hero-title {
        font-size: 2.2rem !important;
    }
    .ct-section {
        padding: 0 16px 60px !important;
    }
    .ct-chips {
        justify-content: center !important;
    }

    /* ── ABOUT US PAGE ── */
    .ab-section {
        padding: 0 16px 60px !important;
    }
    .ab-hero {
        padding: 100px 20px 50px !important;
        text-align: center !important;
    }
    .ab-story-img-wrap img {
        border-radius: 12px !important;
        max-height: 280px !important;
        object-fit: cover !important;
        width: 100% !important;
    }
    .ab-story-badge {
        bottom: -16px !important;
        right: 10px !important;
        padding: 10px 14px !important;
        gap: 8px !important;
    }
    .ab-timeline {
        padding-left: 20px !important;
    }
    .ab-timeline-item {
        padding-left: 24px !important;
    }
    .tc-columns-wrap {
        max-height: 500px !important;
    }

    /* ── PORTFOLIO DETAIL PAGE ── */
    .pd-meta-bar {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    .pd-meta-item {
        flex: 0 0 50% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    }
    .pd-hero {
        padding: 100px 16px 40px !important;
    }
    .pd-overview-wrap {
        padding: 0 16px !important;
    }
    .pd-sidebar-row {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .pd-video-section,
    .pd-browser-section,
    .pd-ba-section {
        padding: 40px 16px !important;
    }
    .pd-ba-grid {
        gap: 20px !important;
    }
    .pd-browser-bar,
    .pd-ba-bar {
        padding: 8px 10px !important;
    }
    .pd-gallery-section {
        padding: 40px 16px !important;
    }
}

/* ================================================================
   14. TABLET — 768px to 1024px
   ================================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Fix scroll on tablet — disable sticky sidebar plugin side effects */
    .theiaStickySidebar {
        position: static !important;
        transform: none !important;
        overflow: visible !important;
        height: auto !important;
    }

    .resume-wrapper {
        overflow: visible !important;
        height: auto !important;
    }

    /* Hide sidebar info */
    .user-img,
    .user-info,
    .user-social-wrap,
    .resume-info {
        display: none !important;
        visibility: hidden !important;
    }

    .resume-sidebar {
        width: 0 !important;
        min-width: 0 !important;
        flex: 0 0 0 !important;
        overflow: hidden !important;
        height: 0 !important;
        position: static !important; /* override position-sticky on tablet */
    }

    .resume-content {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        height: auto !important;
    }

    .intro-btns,
    .rf-actions {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
    }

    /* Device mockup — column on tablet */
    .rf-hero-content {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        min-height: auto !important;
    }

    .rf-hero-left {
        display: contents !important;
    }

    .rf-hero-title {
        order: 1 !important;
        text-align: center !important;
        font-size: 3.5rem !important;
        margin-bottom: 15px !important;
    }

    .rf-word-carousel {
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
        height: 1.2em !important;
    }

    .rf-dyn-word {
        width: 100% !important;
        left: 0 !important;
        text-align: center !important;
        transform: translateY(10px) !important;
    }

    .rf-dyn-word.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    .rf-dyn-word.out {
        transform: translateY(-10px) !important;
        opacity: 0 !important;
    }

    .rf-hero-desc {
        order: 2 !important;
        text-align: center !important;
        margin: -30px auto 20px auto !important;
        font-size: 1.2rem !important;
        max-width: 600px !important;
    }

    .rf-hero-right {
        order: 3 !important;
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: 450px !important;
        margin-top: 80px !important;
        width: 100% !important;
    }

    .rf-hero-actions {
        order: 4 !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 140px !important;
        margin-bottom: 50px !important;
    }

    .mac-mockup,
    .ipad-mockup {
        margin: 0 !important;
        max-height: 380px !important;
        width: auto !important;
        display: block !important;
    }

    .iphone-mockup {
        margin: 0 !important;
        max-height: 520px !important;
        width: auto !important;
        display: block !important;
    }

    /* Services — stacked on tablet */
    .rf-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rf-service-card.rf-featured {
        transform: scale(1);
    }

    .rf-media-addon {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    /* ── GLOBAL overflow fix (tablet) ── */
    body, html {
        overflow-x: hidden !important;
    }
    .sv-section,
    .sv-container,
    .sv-comp-mobile,
    .sv-comp-m-table {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ── SERVICES PAGE (tablet) ── */
    .sv-hero {
        padding: 130px 30px 70px !important;
        text-align: center !important;
    }
    .sv-hero-title {
        font-size: 3rem !important;
    }
    .sv-hero-actions {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 14px !important;
    }
    .sv-section {
        padding: 0 30px 80px !important;
    }
    .sv-cta-wrap {
        padding: 60px 40px !important;
        text-align: center !important;
    }
    .sv-cta-actions {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 14px !important;
    }

    /* ── PORTFOLIO PAGE (tablet) ── */
    .pf-hero {
        padding: 130px 30px 60px !important;
    }
    .pf-stats {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    .pf-cta-strip {
        padding: 60px 36px !important;
        text-align: center !important;
    }
    .pf-cta-actions {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 14px !important;
    }

    /* ── CONTACT PAGE (tablet) ── */
    .ct-hero {
        padding: 130px 30px 60px !important;
    }

    /* ── ABOUT US PAGE (tablet) ── */
    .ab-section {
        padding: 0 30px 80px !important;
    }
    .tc-columns-wrap {
        max-height: 600px !important;
    }

    /* ── PORTFOLIO DETAIL (tablet) ── */
    .pd-meta-bar {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .pd-meta-item {
        flex: 0 0 50% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    }
    .pd-hero {
        padding: 120px 30px 50px !important;
    }
    .pd-overview-wrap {
        padding: 0 30px !important;
    }
    .pd-video-section,
    .pd-browser-section,
    .pd-ba-section {
        padding: 50px 30px !important;
    }
    .pd-gallery-section {
        padding: 50px 30px !important;
    }
}

/* ================================================================
   15. DESKTOP — 1025px and above
   ================================================================ */
@media (min-width: 1025px) {
    .resume-wrapper {
        display: flex !important;
        flex-direction: row !important;

        /* gap handled by responsive.css breakpoints */
    }

    .resume-sidebar {
        display: block !important;
        flex: 0 0 25.9375rem !important;
        max-width: 25.9375rem !important;
        position: sticky !important;
        top: 20px !important;
        align-self: flex-start !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .resume-content {
        flex: 1 !important;
        max-width: none !important;
        min-width: 0 !important;
        text-align: left !important;
        align-items: flex-start !important;
        overflow-x: hidden !important;
    }

    /* Force theiaStickySidebar JS-injected width to stay within resume-content */
    .resume-content > .theiaStickySidebar {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }


    .rf-actions,
    .intro-btns {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 20px !important;
    }

    .pill-badge-custom {
        margin-left: 15px !important;
    }

    /* Fun fact boxes — 4 columns on desktop */
    .fun-fact-boxes {
        max-width: 100% !important;
        overflow: visible !important;
    }

    .fun-fact-boxes .row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .fun-fact-boxes .row > [class*="col"] {
        padding: 0 !important;
        max-width: none !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .fun-fact-boxes .row {
        gap: 12px !important;
    }
}

/* Fun fact boxes — matching contact card style */
.fun-fact-boxes {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fun-fact-boxes > div.row {
    gap: 12px !important;
    border: none !important;
    align-items: stretch !important;
}

.fun-fact-boxes > div.row > [class*="col"] {
    display: flex !important;
}

.fun-fact-boxes > div.row > [class*="col"] .fun-fact-box {
    width: 100% !important;
    flex: 1 !important;
}

.fun-fact-boxes > div.row > div:not(:first-child) {
    border-left: none !important;
}

.fun-fact-box {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: rgba(255,255,255,0.92) !important;
    border: 1px solid rgba(161,71,179,0.12) !important;
    border-radius: 14px !important;
    padding: 18px 20px !important;
    min-height: 100px !important;
    align-items: center !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12) !important;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s !important;
    cursor: default !important;
}

.fun-fact-box:hover {
    border-color: rgba(161,71,179,0.35) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18) !important;
}

.fun-fact-box::before {
    display: none !important;
}

/* Icon wrapper */
.ff-icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(161,71,179,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c87de0;
    transition: background 0.3s;
}

.fun-fact-box:hover .ff-icon-wrap {
    background: rgba(161,71,179,0.28);
}

.ff-icon-wrap svg {
    width: 18px;
    height: 18px;
}

/* Text */
.ff-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ff-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: rgba(0,0,0,0.45) !important;
}

.dark .fun-fact-box > h3,
.fun-fact-box > h3,
.ff-value,
.ff-body h3,
.ff-body .ff-value {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.ff-icon-wrap {
    background: rgba(161,71,179,0.12) !important;
}

.fun-fact-box:hover .ff-icon-wrap {
    background: rgba(161,71,179,0.22) !important;
}

/* Reduce bottom gap of main content wrapper before marquee/contact */
section > .w-100.pb-130 {
    padding-bottom: 20px !important;
}

@media (max-width: 1024px) {
    section > .w-100.pb-130 {
        padding-bottom: 10px !important;
    }
}

/* ================================================================
   PREMIUM CONTACT SECTION
   ================================================================ */
.rf-premium-contact {
    padding: 40px 40px 80px;
    position: relative;
}

.rf-premium-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at 30% 50%, rgba(161,71,179,0.28) 0%, rgba(161,71,179,0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.rf-pc-inner {
    position: relative;
    z-index: 1;
}

.rf-pc-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

/* ── LEFT ── */
.rf-pc-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a147b3;
    border: 1px solid rgba(161,71,179,0.35);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 22px;
}

.rf-pc-heading {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.rf-pc-accent {
    background: linear-gradient(135deg, #a147b3, #d07fe0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rf-pc-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin-bottom: 38px;
    max-width: 340px;
}

.rf-pc-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rf-pc-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 14px;
    padding: 18px 20px;
    transition: border-color 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rf-pc-card:hover {
    border-color: rgba(161,71,179,0.3);
}

.rf-pc-card-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: rgba(161,71,179,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c87de0;
}

.rf-pc-card-icon svg {
    width: 18px;
    height: 18px;
}

.rf-pc-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rf-pc-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.rf-pc-available {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    width: fit-content;
    margin: 4px 0;
}

.rf-pc-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: rf-dot-pulse 2s ease-in-out infinite;
}

@keyframes rf-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.rf-pc-card-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.rf-pc-card-value:hover { color: #c87de0; }

.rf-pc-card-body p {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.5;
}

/* ── RIGHT: FORM ── */
.rf-pc-right {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.rf-pc-right::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(161,71,179,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.rf-pc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.rf-pc-form-row--full {
    grid-template-columns: 1fr;
}

.rf-pc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rf-pc-field label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

.rf-pc-field label span {
    color: #a147b3;
}

.rf-pc-field input,
.rf-pc-field textarea,
.rf-pc-field select {
    width: 100%;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    padding: 13px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.rf-pc-field input::placeholder,
.rf-pc-field textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.rf-pc-field input:focus,
.rf-pc-field textarea:focus,
.rf-pc-field select:focus {
    border-color: rgba(161,71,179,0.6);
    box-shadow: 0 0 0 3px rgba(161,71,179,0.1);
    background: rgba(255,255,255,0.07);
}

.rf-pc-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select wrapper */
.rf-pc-select-wrap {
    position: relative;
}

.rf-pc-select-wrap select {
    cursor: pointer;
    padding-right: 40px;
}

.rf-pc-select-wrap select option {
    background: #1a1a2e;
    color: #fff;
}

.rf-pc-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    font-size: 18px;
    pointer-events: none;
    line-height: 1;
}

/* Budget pills */
.rf-pc-budget {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rf-pc-pill {
    cursor: pointer;
}

.rf-pc-pill input[type="radio"] {
    display: none;
}

.rf-pc-pill span {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    transition: all 0.2s ease;
    user-select: none;
}

.rf-pc-pill:hover span {
    border-color: rgba(161,71,179,0.5);
    color: #fff;
}

.rf-pc-pill input[type="radio"]:checked + span {
    background: linear-gradient(135deg, rgba(161,71,179,0.3), rgba(161,71,179,0.15));
    border-color: rgba(161,71,179,0.7);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(161,71,179,0.3);
}

/* Submit button */
.rf-pc-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 15px 34px;
    background: linear-gradient(135deg, #a147b3, #7b2fa0);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    position: relative;
    overflow: hidden;
}

.rf-pc-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.rf-pc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(161,71,179,0.45);
}

.rf-pc-submit:hover::before { opacity: 1; }

.rf-pc-submit svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.rf-pc-submit:hover svg {
    transform: translateX(3px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .rf-premium-contact {
        padding: 30px 30px 60px;
    }

    .rf-pc-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .rf-pc-desc { max-width: 100%; }

    .rf-pc-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .rf-pc-card {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .rf-premium-contact {
        padding: 24px 16px 50px;
    }

    .rf-pc-right {
        padding: 28px 20px;
    }

    .rf-pc-form-row {
        grid-template-columns: 1fr;
    }

    .rf-pc-cards {
        grid-template-columns: 1fr;
    }

    .rf-pc-budget {
        gap: 8px;
    }
}

/* ================================================================
   REWORKED SCROLLING MARQUEE
   ================================================================ */
.rf-marquee-section-wrap {
    overflow: hidden !important;
    width: 100% !important;
}

.scheme1 .hire-head-box.rf-marquee-rework {
    background-color: transparent !important;
    border-top: 1px solid rgba(161, 71, 179, 0.2) !important;
    border-bottom: 1px solid rgba(161, 71, 179, 0.2) !important;
    padding: 22px 0 !important;
    transform: none !important;
    overflow: hidden !important;
    min-width: 100% !important;
    margin-left: 0 !important;
    min-height: 5rem !important;
}

.rf-marquee-text {
    font-size: clamp(2rem, 4.5vw, 4rem) !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
    color: transparent !important;
    -webkit-text-stroke: 1.5px rgba(161, 71, 179, 0.5) !important;
    opacity: 1 !important;
    line-height: 1 !important;
    top: 50% !important;
    margin-top: -2rem !important;
    animation-name: scroll-h-anime !important;
    animation-duration: 35s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
}

.rf-marquee-text:after {
    content: attr(data-text);
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(161, 71, 179, 0.5);
}

/* ================================================================
   FIX: Canvas WebGL — fond fixe derrière tout le contenu
   ================================================================ */
.bg-anime {
    z-index: 0 !important;
}

.bg-anime,
.bg-anime canvas {
    pointer-events: none !important;
}

/* ================================================================
   MARQUEE DIVIDER (shared — index & aboutus)
   ================================================================ */
.ab-marquee-wrap {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.ab-marquee-track {
    display: flex;
    width: max-content;
    animation: ab-marquee 32s linear infinite;
}


@keyframes ab-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ab-marquee-text {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 60px;
    letter-spacing: 4px;
}

.ab-marquee-text span {
    color: rgba(161,71,179,0.14);
}

@media (max-width: 768px) {
    .ab-marquee-wrap {
        padding: 24px 0;
    }

    .ab-marquee-text {
        font-size: 2.2rem;
        letter-spacing: 2px;
        padding-right: 36px;
        color: rgba(255,255,255,0.12);
    }

    .ab-marquee-text span {
        color: rgba(161,71,179,0.30);
    }

    .ab-marquee-track {
        animation-duration: 22s;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .ab-marquee-wrap {
        padding: 30px 0;
    }

    .ab-marquee-text {
        font-size: 3.5rem;
        letter-spacing: 3px;
        color: rgba(255,255,255,0.08);
    }

    .ab-marquee-text span {
        color: rgba(161,71,179,0.22);
    }
}

/* ================================================================
   FOOTER — FULL WIDTH PURPLE TRANSPARENT BAR
   ================================================================ */
.rf-footer {
    width: 100%;
    background: rgba(161, 71, 179, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(161, 71, 179, 0.25);
    padding: 0;
}

.rf-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rf-footer-logo {
    height: 150px;
    width: auto;
    flex-shrink: 0;
}

.rf-footer-copy {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    margin: 0;
    text-align: center;
    flex: 1;
}

.rf-footer-socials {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.rf-footer-socials a {
    color: rgba(255, 255, 255, 0.7);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
}
.rf-footer-socials a:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
}
.rf-footer-socials svg { width: 13px; height: 13px; }

/* Responsive */
@media (max-width: 768px) {
    .rf-footer-inner {
        padding: 16px 20px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    .rf-footer-logo {
        height: 60px;
        flex-shrink: 0;
    }
    .rf-footer-copy {
        flex: 1;
        text-align: left;
        font-size: 0.72rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .rf-footer-inner {
        padding: 14px 30px;
    }
    .rf-footer-logo { height: 70px; }
}

/* ── Fake SVG logos ── */
.rf-fake-logo {
    height: 36px;
    width: auto;
    opacity: 0.55;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.rf-fake-logo:hover {
    opacity: 0.9;
}

/* ── Real client logos ── */
.rf-client-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(100%) brightness(1.4);
    transition: opacity 0.3s ease, filter 0.3s ease;
    flex-shrink: 0;
}

.rf-client-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

