/* 
   TRULY NEW UI - Rototech Redesign
   Completely independent of existing site styles
*/

:root {
    --r-navy: #0d1117;
    --r-navy-mid: #1a2332;
    --r-red: #e8320a;
    --r-red-hover: #c42808;
    --r-sky: #0096d6;
    --r-sky-light: rgba(0, 150, 214, 0.08);
    --r-white: #ffffff;
    --r-gray: #f4f6f9;
    --r-border: #e4e9f0;
    --r-text: #4a5568;
    --r-text-light: #718096;
    --r-heading: #0d1117;
    --r-glass: rgba(255, 255, 255, 0.05);
    --r-glass-border: rgba(255, 255, 255, 0.1);
    --r-card-bg: #ffffff;
    --r-card-shadow: 0 2px 16px rgba(13,17,23,0.06);
    --r-card-shadow-hover: 0 12px 40px rgba(13,17,23,0.14);
    /* Typography */
    --r-font-display: 'Barlow Condensed', sans-serif;
    --r-font-body: 'DM Sans', sans-serif;
}

/* Base resets for this page */
.new-ui-body .site-main,
.new-ui-body section,
.new-ui-body div,
.new-ui-body p,
.new-ui-body h1,
.new-ui-body h2,
.new-ui-body h3,
.new-ui-body h4,
.new-ui-body a,
.new-ui-body img {
    box-sizing: border-box;
}

/* Override any conflicting existing site font */
.new-ui-body {
    font-family: var(--r-font-body) !important;
    color: var(--r-text);
    background: var(--r-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.new-ui-body .site-main {
    /* Remove padding to allow hero to be under transparent header */
    padding-top: 0 !important;
}

/* HEADER OVERRIDES - TRANSITIONS FROM TRANSPARENT TO LIGHT */
.new-ui-body .site-header {
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none !important;
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.new-ui-body .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.new-ui-body .main-nav {
    display: flex !important; /* Ensure nav is visible on desktop */
}

.new-ui-body .main-nav__link {
    color: #fff !important; /* White text on transparent header */
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.new-ui-body .site-header.scrolled .main-nav__link {
    color: #333 !important; /* Dark text on light header */
}

.new-ui-body .main-nav__link:hover,
.new-ui-body .main-nav__link.active {
    color: var(--r-sky) !important; /* Use Sky Blue for active/hover */
    background: rgba(0, 168, 232, 0.05) !important;
}

.new-ui-body .site-header.scrolled .main-nav__link:hover {
    background: rgba(0, 168, 232, 0.08) !important;
}

.new-ui-body .header-logo__text {
    display: none !important;
}

.new-ui-body .site-header.scrolled .header-logo__text {
    display: none !important;
}

.new-ui-body .hamburger__line {
    background-color: #fff !important;
    height: 2px;
    width: 25px;
    display: block;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.new-ui-body .site-header.scrolled .hamburger__line {
    background-color: var(--r-sky) !important;
}

.new-ui-body .hamburger {
    display: none !important;
}

@media (max-width: 1129px) {
    .new-ui-body .main-nav {
        display: none !important;
    }
    .new-ui-body .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: transparent !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0;
        cursor: pointer;
        z-index: 1002;
    }

    .new-ui-body .hamburger__line {
        background-color: #fff !important;
        width: 26px !important;
        height: 2px !important;
        margin: 3px 0 !important;
        transition: all 0.3s ease;
    }

    .new-ui-body .site-header.scrolled .hamburger__line {
        background-color: var(--r-sky) !important;
    }

    .new-ui-body .header-logo__img {
        max-width: 140px !important;
        height: auto !important;
    }

    .new-ui-body .header-actions {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
}

/* MOBILE DRAWER — LIGHT THEME */
.new-ui-body .mobile-nav {
    background: #ffffff !important;
    color: var(--r-heading) !important;
    z-index: 10000 !important; /* Ensure it stays on top */
}

.new-ui-body .mobile-overlay {
    z-index: 9999 !important;
}

.new-ui-body .mobile-nav__header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.new-ui-body .mobile-nav__link,
.new-ui-body .mobile-nav__toggle {
    color: var(--r-heading) !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.new-ui-body .mobile-nav__sub {
    background: #f8fafc !important;
}

.new-ui-body .mobile-nav__sub-link {
    color: var(--r-text) !important;
}


/* HERO SECTION - REBUILT */
.r-hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* YouTube iframe BG */
.r-hero__video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.r-hero__vid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.r-hero__vid--active {
    opacity: 1;
}

.r-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

/* HERO CONTENT */
.r-hero__content-wrap {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 140px;
}

.r-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--r-sky);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    position: relative;
    padding-left: 0;
}

.r-hero__tag::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--r-sky);
    flex-shrink: 0;
}

.r-hero__title {
    font-family: var(--r-font-display);
    font-size: clamp(3rem, 6.5vw, 5.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.0;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.r-hero__desc {
    font-family: var(--r-font-body);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    font-weight: 300;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 44px;
    max-width: 560px;
}

.r-hero__cta-wrap {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.r-btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.45);
    color: rgba(255,255,255,0.9);
    font-family: var(--r-font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.r-btn-hero-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
    color: #fff;
}

/* HERO CREDENTIAL STRIP */
.r-hero__bottom-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: stretch;
    background: rgba(13,17,23,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.r-hero__credential {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    gap: 4px;
    transition: background 0.25s ease;
}

.r-hero__credential:hover {
    background: rgba(255,255,255,0.04);
}

.r-hero__cred-num {
    font-family: var(--r-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: 0.02em;
}

.r-hero__cred-num sup {
    font-size: 0.6em;
    vertical-align: super;
    color: var(--r-sky);
    font-weight: 600;
}

.r-hero__cred-label {
    font-family: var(--r-font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.r-hero__cred-divider {
    width: 1px;
    background: rgba(255,255,255,0.1);
    align-self: stretch;
    margin: 12px 0;
}

.r-hero__cred--highlight .r-hero__cred-num {
    color: var(--r-sky);
}

.r-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.r-hero__tag {
    display: inline-block;
    color: var(--r-sky); /* Use sky blue for tags */
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
}

.r-hero__tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 50px;
    height: 3px;
    background: var(--r-sky); /* Sky blue line */
    border-radius: 2px;
}

.r-intro {
    background: #fff;
    padding: 100px 0;
    text-align: center;
}

.r-intro__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.r-intro .r-hero__tag {
    justify-content: center;
    color: var(--r-navy);
    margin-bottom: 25px;
}

.r-intro__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #0f172a;
    text-transform: none; /* Sentence case like reference site */
    letter-spacing: -0.01em;
}

.r-intro__desc {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #1e293b; /* Darker for better visibility */
    margin-bottom: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.r-intro .r-btn-group {
    justify-content: center;
}

.r-intro .r-btn-outline {
    border: 2px solid var(--r-sky);
    color: var(--r-sky);
    background: transparent;
    backdrop-filter: none;
}

.r-intro .r-btn-outline:hover {
    background: var(--r-sky);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.3);
}

.r-btn-group {
    display: flex;
    gap: 20px;
}

.r-btn-main {
    display: inline-block;
    background: var(--r-red);
    color: #fff;
    padding: 16px 36px;
    font-family: var(--r-font-body);
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,50,10,0.25);
    text-decoration: none;
}

.r-btn-main:hover {
    background: var(--r-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232,50,10,0.4);
    color: #fff;
}

.r-btn-outline {
    background: var(--r-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 45px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid var(--r-glass-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 1px;
}

.r-btn-outline:hover {
    background: #fff;
    color: var(--r-navy);
    transform: translateY(-5px);
}

/* Removed hero-transparent styles - header is always white */

/* Scroll indicator */
.r-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.r-hero__scroll-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
}

.r-hero__scroll-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    position: relative;
    overflow: hidden;
}

.r-hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--r-red);
    animation: r-scroll-anim 2s infinite ease-in-out;
}

@keyframes r-scroll-anim {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(340%); }
}

/* SECTIONS — BASE */
.r-section {
    padding: 96px 0;
    position: relative;
}

.r-section--gray {
    background: var(--r-gray);
}

.r-header {
    margin-bottom: 56px;
}

.r-header__small {
    font-family: var(--r-font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    color: var(--r-sky);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.r-header__small::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--r-sky);
    flex-shrink: 0;
}

.r-header__title {
    font-family: var(--r-font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 700;
    color: var(--r-heading);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* Section eyebrow — used in CTA, varies from header__small */
.r-section-eyebrow {
    font-family: var(--r-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--r-sky);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.r-section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--r-sky);
}

/* WHAT WE DO — REDESIGNED */
.r-wwd-intro-wrap {
    position: relative;
    margin-bottom: 80px;
    padding: 20px 0;
}

.r-wwd-watermark {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.03);
    text-transform: uppercase;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.r-wwd-top {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.r-tag-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--r-heading);
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.r-tag-modern span {
    background: var(--r-sky);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.r-text-highlight {
    color: var(--r-sky);
    position: relative;
    display: inline-block;
}

.r-text-highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 168, 232, 0.08);
    z-index: -1;
}

.r-wwd-top__sep {
    height: 100px;
    background: #e2e8f0;
}

.r-wwd-intro {
    font-family: var(--r-font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--r-text);
    margin-bottom: 30px;
}

.r-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 2px solid var(--r-red);
    color: var(--r-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: 0.3s;
    text-decoration: none;
}

.r-btn-outline:hover {
    background: var(--r-red);
    color: #fff;
}

@media (max-width: 991px) {
    .r-wwd-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .r-wwd-top__sep {
        display: none;
    }
    .r-wwd-watermark {
        font-size: 5rem;
    }
}

.r-wwd-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: visible;
}

.r-wwd-new-card {
    background: #fff;
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
    cursor: default;
    border-right: 1px solid #e2e8f0;
}

.r-wwd-new-card:last-child {
    border-right: none;
}

.r-wwd-new-card:hover {
    background: var(--r-navy);
    transform: none;
}

.r-wwd-new-card:hover .r-wwd-new-card__title,
.r-wwd-new-card:hover .r-wwd-new-card__text {
    color: #fff;
}

.r-wwd-new-card:hover .r-wwd-new-card__icon {
    background: var(--r-red);
    color: #fff;
}

.r-wwd-new-card:hover .r-wwd-new-card__num {
    color: rgba(255,255,255,0.08);
}

.r-wwd-new-card__num {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(15,23,42,0.05);
    position: absolute;
    top: 20px;
    right: 24px;
    line-height: 1;
    transition: 0.4s;
}

.r-wwd-new-card__icon {
    width: 64px;
    height: 64px;
    background: var(--r-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--r-red);
    margin-bottom: 28px;
    transition: 0.4s;
}

.r-wwd-new-card__title {
    font-family: var(--r-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--r-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
    transition: 0.4s;
}

.r-wwd-new-card__text {
    font-family: var(--r-font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--r-text);
    line-height: 1.75;
    transition: 0.4s;
}

/* COUNTER SECTION — DARK INDUSTRIAL STRIP */
.r-counter-section {
    background: var(--r-navy);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.r-counter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,150,214,0.08) 0%, transparent 50%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            rgba(255,255,255,0.025) 79px,
            rgba(255,255,255,0.025) 80px
        );
    pointer-events: none;
}

.r-counter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    z-index: 1;
}

.r-counter-item {
    text-align: center;
    padding: 52px 24px;
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: background 0.3s ease;
}

.r-counter-item:last-child {
    border-right: none;
}

.r-counter-item:hover {
    background: rgba(0,150,214,0.08);
}

.r-counter-item__icon {
    font-size: 1.1rem;
    color: var(--r-sky);
    margin-bottom: 18px;
    opacity: 0.7;
}

.r-counter-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
}

.r-counter-num {
    font-family: var(--r-font-display);
    font-size: 3.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: 0.01em;
}

.r-counter-unit {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--r-sky);
}

.r-counter-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.r-counter-item::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--r-sky);
    transition: width 0.4s ease;
}

.r-counter-item:hover::after {
    width: 50%;
}

/* SECTION: SOLUTIONS (Large Images) */
.r-sol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.r-sol-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.r-sol-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.r-sol-item:hover img {
    transform: scale(1.1);
}

.r-sol-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: #fff;
}

.r-sol-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.r-sol-tag {
    color: var(--r-red);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* CLIENTS / INDUSTRIES — INFINITE MARQUEE */
.r-clients-section {
    background: var(--r-white);
    overflow: hidden;
    padding-bottom: 80px;
}

.r-marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* Fade edges left & right */
/* TESTIMONIALS SECTION */
.r-testimonials-section {
    background: #ffffff;
    padding: 100px 0;
}

.r-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.r-testimonial-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* For the top highlight bar */
}

.r-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 168, 232, 0.1); /* Subtle bar always visible */
    transition: 0.3s;
}

.r-testimonial-card:hover::before {
    background: var(--r-sky); /* Full brand color on hover */
}

.r-testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--r-sky);
    box-shadow: 0 20px 50px rgba(0, 168, 232, 0.1);
}

.r-testimonial-quote-icon {
    font-size: 2.5rem;
    color: var(--r-sky);
    opacity: 0.2;
    margin-bottom: 20px;
}

.r-testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--r-text);
    margin: 0 0 30px 0;
    font-style: italic;
    flex-grow: 1;
}

.r-testimonial-footer {
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.r-testimonial-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--r-heading);
    font-size: 1.15rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.r-testimonial-company {
    display: block;
    font-size: 0.85rem;
    color: var(--r-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.r-testimonial-slider {
    padding: 20px 10px 40px 10px;
    overflow: visible;
}

.r-testimonial-slider .swiper-wrapper {
    transition-timing-function: linear !important;
}

@media (max-width: 767px) {
    .r-testimonial-card {
        padding: 25px;
    }
}

/* INDUSTRIES MARQUEE — LIGHT THEME */
.r-industries-marquee-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Light marquee (replaces dark navy marquee) */
.r-marquee-light {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    margin-top: 20px;
}

.r-marquee-light::before,
.r-marquee-light::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.r-marquee-light::before {
    left: 0;
    background: linear-gradient(to right, var(--r-gray) 0%, transparent 100%);
}

.r-marquee-light::after {
    right: 0;
    background: linear-gradient(to left, var(--r-gray) 0%, transparent 100%);
}

.r-marquee-light__track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: r-marquee-fast var(--marquee-duration, 60s) linear infinite;
}

.r-marquee-light:hover .r-marquee-light__track {
    animation-play-state: paused;
}

.r-marquee-light__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 32px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    transition: all 0.35s ease;
    cursor: default;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.r-marquee-light__item:hover {
    border-color: var(--r-sky);
    box-shadow: 0 8px 25px rgba(0,168,232,0.12);
    transform: translateY(-4px);
}

.r-marquee-light__icon {
    width: 42px;
    height: 42px;
    background: var(--r-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    border: 1px solid #eef2f6;
    transition: 0.3s;
}

.r-marquee-light__item:hover .r-marquee-light__icon {
    background: var(--r-sky);
}

.r-marquee-light__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s;
}

.r-marquee-light__item:hover .r-marquee-light__icon img {
    filter: brightness(0) invert(1);
}

.r-marquee-light__item span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--r-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.r-marquee-modern {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: transparent; /* Remove solid bar */
    border: none;
}

/* Fade edges for modern feel */
.r-marquee-modern::before,
.r-marquee-modern::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.r-marquee-modern::before {
    left: 0;
    background: linear-gradient(to right, var(--r-navy) 0%, transparent 100%);
}

.r-marquee-modern::after {
    right: 0;
    background: linear-gradient(to left, var(--r-navy) 0%, transparent 100%);
}

.r-marquee-modern__track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: r-marquee-fast 25s linear infinite;
}

.r-marquee-modern:hover .r-marquee-modern__track {
    animation-play-state: paused;
}

.r-marquee-modern__item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: rgba(255,255,255,0.03); /* Subtle glass */
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255,255,255,0.9); /* Light text on dark */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.r-marquee-modern__item:hover {
    border-color: var(--r-sky);
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px) scale(1.05);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 168, 232, 0.15);
}

.r-marquee-modern__icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.r-marquee-modern__item:hover .r-marquee-modern__icon {
    background: var(--r-sky);
}

.r-marquee-modern__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.3s;
    filter: brightness(1.2) contrast(1.1); /* Pop on dark bg */
}

.r-marquee-modern__item:hover .r-marquee-modern__icon img {
    filter: brightness(0) invert(1);
}

.r-marquee-modern__item span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff; /* White text on dark bg */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@keyframes r-marquee-fast {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 25px)); }
}

/* Fades for marquee edges */
.r-marquee-modern::before,
.r-marquee-modern::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.r-marquee-modern::before {
    left: 0;
    background: linear-gradient(to right, var(--r-navy), transparent);
}

.r-marquee-modern::after {
    right: 0;
    background: linear-gradient(to left, var(--r-navy), transparent);
}

.r-marquee-wrap::before,
.r-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 160px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.r-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--r-white) 0%, transparent 100%);
}

.r-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--r-white) 0%, transparent 100%);
}

.r-marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: r-marquee-scroll 30s linear infinite;
}

/* Pause on hover */
.r-marquee-wrap:hover .r-marquee-track {
    animation-play-state: paused;
}

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

.r-client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 200px;
    flex-shrink: 0;
    background: var(--r-gray);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 20px;
    transition: 0.3s;
    cursor: default;
}

.r-client-item:hover {
    border-color: var(--r-red);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.r-client-item img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: 0.3s;
}

.r-client-item:hover img {
    filter: grayscale(0%);
}

.r-client-item span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--r-heading);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* MODERN COMPANY PROFILE */
.r-about-modern {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 70px;
    align-items: center;
}

.r-about-modern__image {
    position: relative;
    border-radius: 20px;
    overflow: visible;
}

.r-about-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.r-about-modern__experience {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--r-sky);
    color: #fff;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 168, 232, 0.3);
    z-index: 5;
}

.r-about-modern__experience span {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.r-about-modern__experience p {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0 0;
}

.r-about-modern__content {
    padding-left: 20px;
}

/* About checklist (replaces stat pills) */
.r-about-checklist {
    margin: 30px 0 35px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.r-about-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--r-heading);
}

.r-about-check-item i {
    color: var(--r-sky);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.r-about-modern__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: var(--r-heading);
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
}

.r-about-modern__text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--r-text);
    margin-bottom: 22px;
}

.r-about-stats-grid {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.r-stat-pill {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 20px 30px;
    border-radius: 100px;
    border: 1px solid #eef2f6;
    transition: 0.3s;
}

.r-stat-pill:hover {
    background: #fff;
    border-color: var(--r-red);
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.r-stat-pill__icon {
    font-size: 1.5rem;
    color: var(--r-red);
}

.r-stat-pill__num {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--r-heading);
    line-height: 1;
}

.r-stat-pill__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--r-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .r-about-modern {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .r-about-modern__image {
        max-width: 500px;
        margin: 0 auto;
    }
    .r-about-modern__content {
        padding-left: 0;
    }
}

/* PRODUCTS IMAGE CARD GRID — 4 COLUMNS ON DESKTOP */
.r-pcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 60px;
}

.r-pcard {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f4f8;
    height: 100%;
    position: relative;
}

.r-pcard:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 168, 232, 0.15);
    border-color: var(--r-sky);
}

.r-pcard__img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f8fafc;
}

.r-pcard__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
    display: block;
}

.r-pcard:hover .r-pcard__img-wrap img {
    transform: scale(1.1);
}

.r-pcard__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--r-sky);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 168, 232, 0.4);
}

.r-pcard__body {
    padding: 30px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.r-pcard__title {
    font-family: var(--r-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--r-heading);
    margin-bottom: 12px;
    line-height: 1.2;
    transition: 0.3s;
}

.r-pcard:hover .r-pcard__title {
    color: var(--r-sky);
}

.r-pcard__desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

.r-pcard__footer {
    padding: 0 25px 30px;
    margin-top: auto;
}

.r-pcard__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: #f8fafc;
    color: var(--r-heading);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: 0.3s;
    border: 1px solid #e2e8f0;
}

.r-pcard:hover .r-pcard__btn {
    background: var(--r-sky);
    color: #fff;
    border-color: var(--r-sky);
}

.r-pcard__btn i {
    transition: 0.3s;
}

.r-pcard:hover .r-pcard__btn i {
    transform: translateX(5px);
}

/* LATEST BLOGS */
.r-blogs-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.r-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.r-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.r-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.r-blog-card__img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}

.r-blog-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--r-sky);
    font-size: 3.5rem;
    opacity: 0.4;
}

.r-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.r-blog-card:hover .r-blog-card__img img {
    transform: scale(1.1);
}

.r-blog-card__cat {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--r-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.r-blog-card__body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.r-blog-card__meta {
    font-size: 0.8rem;
    color: var(--r-text);
    margin-bottom: 12px;
}

.r-blog-card__meta i {
    color: var(--r-red);
    margin-right: 5px;
}

.r-blog-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--r-heading);
    margin-bottom: 14px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.r-blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--r-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.r-blog-card__link {
    margin-top: auto;
    font-weight: 700;
    color: var(--r-red);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.r-blog-card__link i {
    transition: 0.3s;
}

.r-blog-card__link:hover i {
    transform: translateX(5px);
}

/* FAQ SECTION */
.r-faq-layout {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 80px;
    align-items: flex-start;
}

.r-faq-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.r-faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.r-faq-item:hover {
    border-color: var(--r-red);
}

.r-faq-q {
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--r-heading);
    font-size: 1rem;
    gap: 20px;
    line-height: 1.5;
}

.r-faq-icon {
    font-size: 0.8rem;
    color: var(--r-text);
    transition: 0.4s;
}

.r-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease-in-out;
    background: #f8fafc;
}

.r-faq-a p {
    padding: 0 25px 25px;
    margin: 0;
    color: var(--r-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.r-faq-item--open {
    border-color: var(--r-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.r-faq-item--open .r-faq-icon {
    transform: rotate(45deg);
    color: var(--r-red);
}

/* CTA SECTION — DARK INDUSTRIAL */
.r-cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--r-navy);
    overflow: hidden;
}

.r-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,150,214,0.12) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(255,255,255,0.02) 59px,
            rgba(255,255,255,0.02) 60px
        );
    pointer-events: none;
}

.r-cta-overlay {
    display: none;
}

.r-cta-section .r-hero__container {
    position: relative;
    z-index: 2;
}

/* CTA heading — distinct from r-hero__title */
.r-cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

.r-cta-heading__accent {
    color: var(--r-sky);
}

.r-cta-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 48px;
}


.r-cta-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 100px;
    align-items: center;
}

.r-cta-contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.r-cta-contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    background: rgba(255,255,255,0.04);
    padding: 22px 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.r-cta-contact-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(0,150,214,0.4);
    transform: translateX(6px);
}

.r-cta-contact-icon {
    width: 48px;
    height: 48px;
    background: var(--r-sky);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.r-cta-contact-text {
    display: flex;
    flex-direction: column;
}

.r-cta-contact-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.r-cta-contact-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

/* FORM BOX */
.r-cta-form-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 48px 44px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.r-cta-form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.r-form-group {
    position: relative;
    margin-bottom: 20px;
}

.r-form-group > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: color 0.3s;
    pointer-events: none;
    z-index: 1;
    color: rgba(255,255,255,0.35);
}

.r-form-group textarea + i {
    top: 25px;
    transform: none;
}

.r-form-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 16px 20px 16px 50px;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    transition: 0.3s;
}

.r-form-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.r-form-input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--r-sky);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,150,214,0.15);
}

.r-form-group:focus-within > i {
    color: var(--r-sky);
}

.r-btn-glow {
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(230,50,36,0.3);
}

.r-btn-glow::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: r-btn-shine 3s infinite;
}

@keyframes r-btn-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* ====================================================
   RESPONSIVE — All Breakpoints
   ==================================================== */

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .r-hero__container {
        max-width: 1400px;
    }
}

/* Laptop / Small Desktop (1200px) */
@media (max-width: 1200px) {
    .r-pcard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet landscape & below (1024px) */
@media (max-width: 1024px) {
    .r-hero {
        height: auto;
        min-height: 600px;
        padding: 140px 0 80px;
    }
    .r-hero__container {
        padding: 0 30px;
    }
    .r-hero__title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }
    .r-pcard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .r-wwd-top {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }
    .r-wwd-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .r-counter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .r-counter-item {
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .r-hero__bottom-strip {
        position: static;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .r-hero__content-wrap {
        padding-bottom: 60px;
    }
    .r-faq-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .r-cta-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {
    .r-hero {
        height: auto;
        min-height: 500px;
        padding: 120px 0 0;
        flex-direction: column;
        align-items: stretch;
    }
    .r-hero__container {
        padding: 0 20px;
    }
    .r-hero__content-wrap {
        padding-bottom: 40px;
    }
    .r-hero__bottom-strip {
        position: static;
        flex-wrap: wrap;
    }
    .r-hero__credential {
        flex: 0 0 50%;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .r-hero__cred-divider {
        display: none;
    }
    .r-header__title {
        font-size: 2.4rem;
    }
    .r-pcard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .r-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .r-counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .r-about-modern {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .r-about-img {
        height: 400px;
    }
    .r-cta-contact-list {
        margin-bottom: 40px;
    }
}

/* Mobile small (576px) */
@media (max-width: 576px) {
    .r-hero {
        height: auto;
        min-height: 620px;
        padding-top: 100px;
        padding-bottom: 0;
        background: var(--r-navy);
        flex-direction: column;
        align-items: stretch;
    }
    .r-hero__container {
        padding: 0 20px;
    }
    .r-hero__cta-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
    .r-pcard-grid {
        grid-template-columns: 1fr;
    }
    .r-blog-grid {
        grid-template-columns: 1fr;
    }
    .r-wwd-cards {
        grid-template-columns: 1fr;
    }
    .r-wwd-new-card {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .r-wwd-new-card:last-child {
        border-bottom: none;
    }
    .r-counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .r-counter-num {
        font-size: 2.8rem;
    }
    .r-header__title {
        font-size: 2rem;
    }
    .r-cta-form-box {
        padding: 30px 20px;
    }
    .r-about-modern__experience {
        padding: 20px;
        bottom: -20px;
        right: 0;
    }
    .r-about-modern__experience span {
        font-size: 2rem;
    }
    .r-sol-grid {
        grid-template-columns: 1fr;
    }
    .r-sol-item {
        height: 280px;
    }
    .r-cs-grid {
        grid-template-columns: 1fr;
    }
    .header-logo__img {
        width: 130px !important;
        height: auto !important;
    }
}

/* ====================================================
   SOLUTIONS & CASE STUDIES — NEW SECTIONS
   ==================================================== */

/* Solutions grid — 2x2 image cards */
.r-sol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.r-sol-item {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    display: block;
    text-decoration: none;
}

.r-sol-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.r-sol-item:hover img {
    transform: scale(1.08);
}

.r-sol-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 36px;
    background: linear-gradient(to top, rgba(10,17,32,0.92) 0%, rgba(10,17,32,0.4) 60%, transparent 100%);
    color: #fff;
}

.r-sol-tag {
    display: inline-block;
    background: var(--r-sky);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.r-sol-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: 0;
}

.r-sol-item::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 40px;
    right: 36px;
    width: 44px;
    height: 44px;
    background: var(--r-red);
    color: #fff;
    border-radius: 50%;
    line-height: 44px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.35s ease;
}

.r-sol-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .r-sol-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .r-sol-item {
        height: 300px;
    }
}

/* CASE STUDIES CARDS */
.r-casestudies-section {
    padding: 100px 0;
}

.r-cs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.r-cs-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 30px;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.r-cs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--r-sky);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}

.r-cs-card:hover {
    transform: translateY(-8px);
    border-color: var(--r-sky);
    box-shadow: 0 20px 50px rgba(0,168,232,0.1);
}

.r-cs-card:hover::before {
    transform: scaleY(1);
}

.r-cs-card__tag {
    display: inline-block;
    background: rgba(0,168,232,0.08);
    color: var(--r-sky);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.r-cs-card__icon {
    font-size: 2rem;
    color: var(--r-sky);
    margin-bottom: 18px;
    opacity: 0.7;
}

.r-cs-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--r-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.r-cs-card__desc {
    font-size: 0.9rem;
    color: var(--r-text);
    line-height: 1.7;
    margin-bottom: 28px;
    flex-grow: 1;
}

.r-cs-card__stat {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.r-cs-card__stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--r-sky);
    line-height: 1;
}

.r-cs-card__stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--r-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.r-cs-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--r-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.r-cs-card__link i {
    transition: transform 0.3s;
}

.r-cs-card:hover .r-cs-card__link i {
    transform: translateX(6px);
}

@media (max-width: 1024px) {
    .r-cs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .r-sol-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .r-cs-grid {
        grid-template-columns: 1fr;
    }
    .r-about-stats-grid {
        flex-direction: column;
        gap: 15px;
    }
}

/* Page Section Utility */
.r-section.bg-white {
    background: #fff;
    padding: 100px 0;
}

/* LATEST BLOGS / INSIGHTS */
.r-blogs-section {
    padding: 120px 0;
    background: var(--r-white);
}

.r-blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.r-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.r-blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--r-card-shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.r-blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--r-card-shadow-hover);
}

.r-blog-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.r-blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.r-blog-card:hover .r-blog-img {
    transform: scale(1.1);
}

.r-blog-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.r-blog-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.r-blog-category {
    color: var(--r-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.r-blog-title {
    font-family: var(--r-font-display);
    font-size: 1.45rem;
    line-height: 1.3;
    color: var(--r-heading);
    margin-bottom: 15px;
    font-weight: 700;
}

.r-blog-excerpt {
    color: var(--r-text);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.r-blog-link {
    margin-top: auto;
    color: var(--r-heading);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.r-blog-link i {
    font-size: 0.75rem;
    transition: 0.3s;
}

.r-blog-card:hover .r-blog-link {
    color: var(--r-red);
}

.r-blog-card:hover .r-blog-link i {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .r-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .r-blogs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .r-blog-grid {
        grid-template-columns: 1fr;
    }
}
