/* ===========================================
   Industries We Serve — V6
   Prefix: rh-ind-
=========================================== */

/* ── SECTION ── */
.rh-ind-section {
    background: #fff;
    padding: 80px 0 130px;
    overflow-x: clip;
    overflow-y: visible;
}

/* ===========================================
   CURVED LOOP MARQUEE
=========================================== */
.rh-ind-curve-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: -20px;
}

.rh-ind-curved-loop {
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.rh-ind-curved-loop:active {
    cursor: grabbing;
}

.rh-ind-curved-svg {
    width: 100%;
    height: auto;
    min-height: 140px;
    overflow: visible;
    display: block;
}

.rh-ind-curved-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    fill: url(#rh-ind-text-grad);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ===========================================
   WRAPPER
=========================================== */
.rh-ind-outer {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: clip;
}

.rh-ind-wrapper {
    position: relative;
    padding-top: 80px;
}

/* ===========================================
   CONTAINER
=========================================== */
.rh-ind-container {
    position: relative;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===========================================
   GRADIENT BG
=========================================== */
.rh-ind-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(135deg,
            #003080 0%, #0055cc 15%, #0077FF 30%,
            #0099ff 45%, #00b8d4 60%, #00c9a7 75%,
            #00dfa8 90%, #00c9a7 100%
        );
    background-size: 300% 300%;
    animation: rhIndGradShift 8s ease-in-out infinite;
}

@keyframes rhIndGradShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 50% 0%; }
    50%  { background-position: 100% 50%; }
    75%  { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* ── Floating glow orbs ── */
.rh-ind-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(65px);
    mix-blend-mode: soft-light;
}

.rh-ind-glow--1 {
    width: 450px;
    height: 450px;
    top: -120px;
    left: -60px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.6) 0%, transparent 70%);
    animation: rhIndO1 6s ease-in-out infinite;
}

.rh-ind-glow--2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: 15%;
    background: radial-gradient(circle, rgba(0, 119, 255, 0.5) 0%, transparent 70%);
    animation: rhIndO2 7s ease-in-out infinite;
}

.rh-ind-glow--3 {
    width: 350px;
    height: 350px;
    top: 25%;
    left: 25%;
    background: radial-gradient(circle, rgba(0, 230, 180, 0.35) 0%, transparent 70%);
    animation: rhIndO3 9s ease-in-out infinite;
}

@keyframes rhIndO1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, 20px) scale(1.15); }
    66%      { transform: translate(-20px, -10px) scale(0.9); }
}

@keyframes rhIndO2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%      { transform: translate(-30px, -15px) scale(1.1); }
    70%      { transform: translate(25px, 10px) scale(0.95); }
}

@keyframes rhIndO3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(35px, -20px) scale(1.2); }
}

/* ── Bottom edge glow ── */
.rh-ind-edge-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 201, 167, 0.12) 50%, rgba(0, 119, 255, 0.18) 100%);
}

/* ===========================================
   PERSON IMAGE — z-index: 2
=========================================== */
.rh-ind-person {
    position: absolute;
    right: -12%;
    bottom: 0;
    width: 68%;
    max-width: 880px;
    z-index: 2;
    pointer-events: none;
}

.rh-ind-person img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 16px 60px rgba(0, 40, 100, 0.35));
}

/* ===========================================
   TEXT CONTENT — z-index: 6
=========================================== */
.rh-ind-content {
    position: relative;
    z-index: 6;
    padding: 64px 60px 0;
    max-width: 46%;
    flex-shrink: 0;
}

.rh-ind-line {
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    margin-bottom: 24px;
}

.rh-ind-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.rh-ind-badge-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    display: inline-block;
    animation: rhIndPulse 2s ease-in-out infinite;
}

@keyframes rhIndPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }
    50%      { box-shadow: 0 0 24px rgba(255, 255, 255, 0.95); }
}

.rh-ind-badge-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rh-ind-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   MARQUEE — z-index: 8
=========================================== */
.rh-ind-marquee {
    position: relative;
    z-index: 8;
    width: 100%;
    overflow: hidden;
    margin-top: auto;
    padding: 0 0 50px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.rh-ind-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: rhIndScroll 35s linear infinite;
    will-change: transform;
}

.rh-ind-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes rhIndScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.rh-ind-marquee-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    flex-shrink: 0;
    cursor: default;
    border-radius: 16px;
    transition: background 0.3s ease;
}

.rh-ind-marquee-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.rh-ind-marquee-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rh-ind-marquee-item:hover img {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.rh-ind-marquee-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    margin: 0;
    line-height: 1.3;
}

.rh-ind-marquee-item:hover .rh-ind-marquee-name {
    color: #d0ffe8;
    text-shadow: 0 0 20px rgba(0, 230, 180, 0.5);
}

.rh-ind-marquee-sep {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.2);
    padding: 0 6px;
    flex-shrink: 0;
    user-select: none;
}

/* ===========================================
   RESPONSIVE — 1440px
=========================================== */
@media (max-width: 1440px) {
    .rh-ind-person {
        width: 65%;
        max-width: 820px;
        right: -10%;
    }
}

/* ===========================================
   RESPONSIVE — 1280px
=========================================== */
@media (max-width: 1280px) {
    .rh-ind-person {
        width: 62%;
        right: -8%;
    }
    .rh-ind-content {
        max-width: 48%;
        padding: 56px 50px 0;
    }
    .rh-ind-wrapper {
        padding-top: 70px;
    }
}

/* ===========================================
   RESPONSIVE — 1024px (Tablet)
=========================================== */
@media (max-width: 1024px) {
    .rh-ind-section {
        padding: 60px 0 100px;
    }
    .rh-ind-curved-svg {
        min-height: 140px;
    }
    .rh-ind-curved-text {
        font-size: 3.5rem;
    }
    .rh-ind-wrapper {
        padding-top: 60px;
    }
    .rh-ind-container {
        min-height: 500px;
    }
    .rh-ind-gradient-bg {
        border-radius: 28px;
    }
    .rh-ind-content {
        max-width: 50%;
        padding: 48px 40px 0;
    }
    .rh-ind-person {
        width: 58%;
        right: -6%;
    }
    .rh-ind-marquee-item img {
        width: 50px;
        height: 50px;
        padding: 7px;
    }
    .rh-ind-marquee-name {
        font-size: 1.4rem;
    }
    .rh-ind-marquee-item {
        padding: 14px 20px;
        gap: 14px;
    }
    .rh-ind-marquee {
        padding-bottom: 44px;
    }
}

/* ===========================================
   RESPONSIVE — 768px (Small Tablet)
=========================================== */
@media (max-width: 768px) {
    .rh-ind-section {
        padding: 50px 0 80px;
    }
    .rh-ind-curve-wrap {
        margin-bottom: -15px;
    }
    .rh-ind-curved-svg {
        min-height: 220px;
    }
    .rh-ind-curved-text {
        font-size: 9rem;
    }
    .rh-ind-outer {
        padding: 0 16px;
    }
    .rh-ind-wrapper {
        padding-top: 50px;
    }
    .rh-ind-container {
        min-height: 500px;
    }
    .rh-ind-gradient-bg {
        border-radius: 24px;
    }
    .rh-ind-person {
        width: 100%;
        right: -10%;
        opacity: 0.15;
        transform: scaleX(-1);
    }
    .rh-ind-content {
        max-width: 78%;
        padding: 40px 32px 0;
    }
    .rh-ind-title {
        font-size: clamp(1.8rem, 5.5vw, 2.8rem);
    }
    .rh-ind-marquee-item img {
        width: 38px;
        height: 38px;
        padding: 5px;
        border-radius: 10px;
    }
    .rh-ind-marquee-name {
        font-size: 1.1rem;
    }
    .rh-ind-marquee-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .rh-ind-marquee {
        padding-bottom: 38px;
    }
}

/* ===========================================
   RESPONSIVE — 576px (Mobile)
=========================================== */
@media (max-width: 576px) {
    .rh-ind-section {
        padding: 40px 0 70px;
    }
    .rh-ind-curve-wrap {
        margin-bottom: -15px;
    }
    .rh-ind-curved-svg {
        min-height: 200px;
    }
    .rh-ind-curved-text {
        font-size: 8.5rem;
    }
    .rh-ind-outer {
        padding: 0 12px;
    }
    .rh-ind-wrapper {
        padding-top: 40px;
    }
    .rh-ind-container {
        min-height: 450px;
    }
    .rh-ind-gradient-bg {
        border-radius: 22px;
    }
    .rh-ind-person {
        width: 120%;
        right: -15%;
        opacity: 0.15;
        transform: scaleX(-1);
    }
    .rh-ind-content {
        max-width: 92%;
        padding: 32px 24px 0;
    }
    .rh-ind-line {
        width: 60px;
        margin-bottom: 18px;
    }
    .rh-ind-badge-text {
        font-size: 0.75rem;
    }
    .rh-ind-title {
        font-size: clamp(1.6rem, 6.5vw, 2.4rem);
    }
    .rh-ind-marquee-name {
        font-size: 1rem;
        font-weight: 700;
    }
    .rh-ind-marquee-item img {
        width: 34px;
        height: 34px;
        padding: 5px;
        border-radius: 8px;
    }
    .rh-ind-marquee-item {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 10px;
    }
    .rh-ind-marquee-sep {
        font-size: 0.9rem;
        padding: 0 4px;
    }
    .rh-ind-marquee {
        padding-bottom: 32px;
    }
    .rh-ind-marquee-track {
        animation-duration: 25s;
    }
    .rh-ind-glow--1 {
        width: 280px;
        height: 280px;
    }
    .rh-ind-glow--2 {
        width: 220px;
        height: 220px;
    }
    .rh-ind-glow--3 {
        width: 200px;
        height: 200px;
    }
}

/* ===========================================
   RESPONSIVE — 420px (Small Mobile)
=========================================== */
@media (max-width: 420px) {
    .rh-ind-curved-svg {
        min-height: 180px;
    }
    .rh-ind-curved-text {
        font-size: 7.2rem;
    }
    .rh-ind-wrapper {
        padding-top: 30px;
    }
    .rh-ind-container {
        min-height: 400px;
    }
    .rh-ind-gradient-bg {
        border-radius: 18px;
    }
    .rh-ind-person {
        width: 135%;
        right: -18%;
        opacity: 0.15;
        transform: scaleX(-1);
    }
    .rh-ind-content {
        max-width: 95%;
        padding: 28px 20px 0;
    }
    .rh-ind-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .rh-ind-marquee-name {
        font-size: 0.9rem;
    }
    .rh-ind-marquee-item img {
        width: 30px;
        height: 30px;
        padding: 4px;
        border-radius: 7px;
    }
    .rh-ind-marquee-item {
        padding: 7px 8px;
        gap: 7px;
    }
    .rh-ind-marquee {
        padding-bottom: 28px;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    .rh-ind-marquee-track,
    .rh-ind-gradient-bg,
    .rh-ind-glow,
    .rh-ind-badge-dot {
        animation: none !important;
    }
    .rh-ind-gradient-bg {
        background-position: 0% 50% !important;
    }
}