/* ==========================================================================
   REEMCO HOLDING — "Google Flow" Emerald & Gold VFX Hero Stylesheet
   Building Materials, Contracting, Engineering, & Saudi Vision 2030
   ========================================================================== */

.rc-flow-hero-wrap {
    position: relative;
    background: #020F0A;
    min-height: 560px;
    overflow: hidden;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#rc-flow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    cursor: crosshair;
}

.rc-flow-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    width: 100%;
}

.rc-flow-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 991px) {
    .rc-flow-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.rc-flow-slides-holder {
    position: relative;
    min-height: 330px;
}

.rc-flow-slide {
    display: none;
    animation: flowSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rc-flow-slide.is-active {
    display: block;
}

@keyframes flowSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rc-flow-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(253, 230, 138, 0.35);
    color: #FDE68A;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.rc-flow-title {
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 16px 0;
    color: #FFFFFF;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.rc-flow-title em {
    font-style: normal;
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rc-flow-desc {
    font-size: 15.5px;
    color: #ECFDF5;
    line-height: 1.8;
    margin: 0 0 28px 0;
    max-width: 580px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.rc-flow-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 28px;
}

.rc-flow-btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10B981 50%, #047857 100%) !important;
    color: #FFFFFF !important;
    padding: 15px 34px !important;
    border-radius: 50px !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.rc-flow-btn-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55) !important;
    color: #FFFFFF !important;
}

.rc-flow-btn-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    color: #FFFFFF !important;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.35) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.rc-flow-btn-gold:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.5) !important;
    color: #FFFFFF !important;
}

.rc-flow-showcase {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
}

.rc-flow-nav-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.rc-flow-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 14px;
    color: #FFFFFF;
    text-align: right;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rc-flow-nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(253, 230, 138, 0.4);
    transform: translateY(-2px);
}

.rc-flow-nav-btn.is-active {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.65) 0%, rgba(6, 78, 59, 0.85) 100%);
    border-color: #34D399;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

.rc-flow-nav-icon {
    font-size: 20px;
}

.rc-flow-nav-title {
    font-weight: 800;
    font-size: 13.5px;
    color: #FFFFFF;
}

.rc-flow-nav-subtitle {
    font-size: 11px;
    color: #A7F3D0;
    opacity: 0.9;
}

.rc-flow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rc-flow-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-flow-arrow-btn:hover {
    background: #059669;
    border-color: #34D399;
    transform: scale(1.1);
}

.rc-flow-brands-wrap {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.rc-flow-brands-title {
    font-size: 12px;
    font-weight: 800;
    color: #FDE68A;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.rc-flow-brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rc-flow-brand-tag {
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.rc-flow-brand-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #FDE68A;
    color: #FDE68A;
    transform: translateY(-2px);
}


/* ════════════════════════════════════════════════════════════════ */
/* CONTINUOUS INFINITE SCROLLING BRANDS TICKER                      */
/* ════════════════════════════════════════════════════════════════ */
.rc-brands-ticker-sec {
    background: #ffffff;
    padding: 22px 0 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
    direction: ltr;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.rc-brands-track-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 4px 0;
}

.rc-brands-track-wrapper::before,
.rc-brands-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.rc-brands-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.rc-brands-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

.rc-brands-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: rcBrandsScroll 32s linear infinite;
}

.rc-brands-track-wrapper:hover .rc-brands-track {
    animation-play-state: paused;
}

@keyframes rcBrandsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333333%);
    }
}

.rc-reemco-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    height: 64px;
    min-width: 135px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.rc-reemco-brand-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.rc-reemco-brand-card img {
    max-height: 44px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.25s ease;
}

.rc-reemco-brand-card:hover img {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .rc-brands-ticker-sec {
        padding: 16px 0;
    }
    .rc-reemco-brand-card {
        height: 52px;
        min-width: 105px;
        padding: 6px 14px;
    }
    .rc-reemco-brand-card img {
        max-height: 34px;
        max-width: 90px;
    }
}


/* ══════════════════════════════════════════════════════════════════
   DYNAMIC SECTOR BACKGROUND IMAGES & CROSSFADE ANIMATION
   ══════════════════════════════════════════════════════════════════ */
.rc-flow-bgs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.rc-flow-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.rc-flow-bg-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.rc-flow-bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

/* Luxury Cinematic Radial & Linear Dark Emerald Overlay */
.rc-flow-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(6, 78, 59, 0.7) 0%, rgba(4, 30, 22, 0.88) 50%, rgba(2, 18, 13, 0.97) 100%),
                linear-gradient(to top, rgba(2, 18, 13, 0.96) 0%, rgba(6, 78, 59, 0.45) 50%, rgba(2, 18, 13, 0.88) 100%);
}


.rc-flow-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.rc-flow-nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: #FFFFFF !important;
    display: block;
    transition: transform 0.25s ease;
}

.rc-flow-nav-btn.is-active .rc-flow-nav-icon svg {
    transform: scale(1.15);
    stroke: #FFFFFF !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* Next-Gen Futuristic Interactive Browser & AI Agent Terminal Mockup */
.rc-browser-terminal {
    background: rgba(4, 18, 13, 0.78);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    max-width: 520px;
    width: 100%;
    margin-right: auto;
}

.rc-term-topbar {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rc-term-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.rc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.rc-dot-red { background: #EF4444; }
.rc-dot-yellow { background: #F59E0B; }
.rc-dot-green { background: #10B981; }

.rc-term-address {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.06);
    direction: ltr;
}
.rc-term-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #34D399;
}
.rc-pulse-radar {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 8px #34D399;
    animation: radarPulse 1.5s infinite;
}
@keyframes radarPulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(0.9); opacity: 1; }
}

.rc-term-modes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.rc-term-mode-tab {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 6px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}
.rc-term-mode-tab:last-child { border-left: none; }
.rc-term-mode-tab:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.05);
}
.rc-term-mode-tab.is-active {
    background: rgba(16, 185, 129, 0.16);
    color: #34D399;
    border-bottom: 2px solid #10B981;
}

.rc-term-screens {
    padding: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.rc-term-screen {
    display: none;
    flex-direction: column;
    height: 100%;
}
.rc-term-screen.is-active {
    display: flex;
}

.rc-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.rc-screen-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: #ECFDF5;
}
.rc-badge-running {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
}

.rc-term-log {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: monospace, -apple-system;
    font-size: 12px;
    line-height: 1.8;
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 14px;
}
.rc-log-line { margin-bottom: 4px; }
.rc-log-line:last-child { margin-bottom: 0; }
.rc-log-ts { opacity: 0.7; }
.rc-check { color: #10B981; font-weight: bold; }

.rc-mini-table {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 14px;
}
.rc-table-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    padding: 7px 12px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rc-table-row:last-child { border-bottom: none; }
.rc-table-head {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 800;
    color: #94A3B8;
}

.rc-telegram-mock {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.rc-tg-sender {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #60A5FA;
    margin-bottom: 6px;
}
.rc-tg-text {
    font-size: 12px;
    color: #E2E8F0;
    margin: 0 0 10px;
    line-height: 1.5;
}
.rc-tg-btn {
    background: #2563EB;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.rc-models-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.rc-model-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #CBD5E1;
}
.rc-model-chip.is-active {
    border-color: #34D399;
    background: rgba(16, 185, 129, 0.1);
    color: #ECFDF5;
}
.rc-mc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
}

.rc-screen-footer {
    display: flex;
    gap: 10px;
}
.rc-metric-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11.5px;
    color: #E2E8F0;
}
.text-gold { color: #FDE68A; font-weight: 800; }
.text-emerald { color: #34D399; font-weight: 800; }

.rc-term-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rc-term-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #94A3B8;
}
.rc-radar-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
}
.rc-term-nav-arrows {
    display: flex;
    gap: 6px;
}
.rc-term-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rc-term-arrow:hover {
    background: #10B981;
    border-color: #34D399;
}
