/* ================================================
   🔴 RS DIGITAL CONTROLS — MASTER STYLE SHEET
   Organized for clarity, performance & consistency
================================================ */

/* ------------------------------
   1️⃣ GLOBAL STYLES
------------------------------ */
body {
    font-family: 'Segoe UI', sans-serif;
 
}

 

h1, h2, h3, h4, h5 {
    letter-spacing: 0.3px;
}

p, li {
    color: #555;
    line-height: 1.7;
}

/* ------------------------------
   2️⃣ NAVBAR (Header)
------------------------------ */
.rs-header {
    background-color: #fff;
    border-bottom: 4px solid #d41b1b; /* red accent */
    transition: all 0.3s ease-in-out;
    z-index: 1050;
}

.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

    .navbar-brand img:hover {
        transform: scale(1.05);
    }

.navbar .nav-link {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    color: #222 !important;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

    .navbar .nav-link:hover {
        color: #d41b1b !important;
    }

    .navbar .nav-link.active,
    .navbar .nav-link:focus {
        color: #fff !important;
        background-color: #d41b1b;
        border-radius: 0;
    }

.navbar-nav .nav-item {
    margin-right: 15px;
}

.dropdown-menu {
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: #f8d7da;
    color: #d41b1b;
}

.rs-header.scrolled {
    border-bottom: 3px solid #a30d0d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ------------------------------
   3️⃣ HERO / BANNER SECTION
------------------------------ */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 450px;
    background: url('/images/automation-bg (2).jpg') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

    .hero-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
          height: 80vh;
    min-height: 450px;
        background: rgba(0, 0, 0, 0.5);
    }

    .hero-section .container {
        position: relative;
        z-index: 2;
    }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        height: 65vh;
        background-attachment: scroll;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

        .hero-section p {
            font-size: 1rem;
        }
}

/* ------------------------------
   4️⃣ OUR SERVICES
------------------------------ */
 

/* ------------------------------
   5️⃣ TESTIMONIALS
------------------------------ */
.testimonial-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #eee;
}

    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }

    .testimonial-card img {
        object-fit: cover;
        border: 2px solid #d41b1b;
    }

    .testimonial-card h6 {
        color: #111;
    }

    .testimonial-card p {
        font-size: 0.95rem;
    }

/* ------------------------------
   6️⃣ CTA SECTIONS
------------------------------ */
section.text-center.text-white {
    background-color: #0e98ba;
}

/* ------------------------------
   7️⃣ CONTACT PAGE
------------------------------ */
.contact-header {
    background-color: #f8f9fa;
}

    .contact-header h2 {
        font-size: 2.5rem;
    }

    .contact-header i {
        color: #d41b1b;
    }

.contact-form-section {
    background-color: #0c0c0c;
    color: #f8f9fa;
}

.form-card {
    background-color: #121212;
    border-radius: 10px;
    padding: 2.5rem;
}

.form-label {
    color: #ccc;
}

.form-control {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 1rem;
}

    .form-control:focus {
        border-color: #d41b1b;
        box-shadow: none;
    }

textarea.form-control {
    resize: none;
}

.btn-danger {
    background-color: #d41b1b;
    border-color: #d41b1b;
    transition: all 0.3s ease;
}

    .btn-danger:hover {
        background-color: #a90e0e;
        border-color: #a90e0e;
    }

/* ------------------------------
   8️⃣ ABOUT PAGE
------------------------------ */
 
/* ------------------------------
   9️⃣ FOOTER
------------------------------ */
.footer-section {
    background-color: #1a1a1a;
    color: #bbb;
}

    .footer-section hr {
        border-top: 1px solid #333;
    }

    .footer-section .footer-link {
        color: #ccc;
        text-decoration: none;
        transition: color 0.3s ease-in-out;
    }

        .footer-section .footer-link:hover {
            color: #d41b1b;
            padding-left: 3px;
        }
/* ===== ABOUT PAGE ===== */

 
 
 
 
/* =====================================================
   ABOUT MODERN – GLOBAL BACKGROUND
===================================================== */
.about-modern {
    background:
        radial-gradient(circle at top right, rgba(220,53,69,0.08), transparent 50%),
        linear-gradient(180deg, #f6f7f9, #ffffff);
}

/* =====================================================
   HEADER
===================================================== */
.about-pill {
    padding: 6px 20px;
    background: rgba(220,53,69,0.1);
    color: #dc3545;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
}

.about-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.about-subtitle {
    max-width: 720px;
    margin: auto;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* =====================================================
   GLASS BASE (NO GRADIENT BY DEFAULT)
===================================================== */
.about-glass {
    background: #ffffff;
    border-radius: 28px;
    padding: 3.2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

/* =====================================================
   GRADIENT ONLY FOR MAIN ABOUT SECTION
===================================================== */
.about-main::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(220,53,69,0.12),
        transparent
    );
}

/* =====================================================
   TYPOGRAPHY
===================================================== */
.about-heading {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about-heading span {
    color: #dc3545;
}

.about-text {
    font-size: 1.03rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 14px;
}

/* =====================================================
   FEATURE CARDS
===================================================== */
.feature-card {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    background: #f9fafb;
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.25s ease;
}

.feature-card i {
    font-size: 1.45rem;
    color: #dc3545;
}

.feature-card h6 {
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-card p {
    margin: 0;
    font-size: 0.92rem;
    color: #6b7280;
}

.feature-card:hover {
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    transform: translateY(-2px);
}

/* =====================================================
   VISION & MISSION
===================================================== */
.about-vm {
    margin-top: 3.5rem;
}

.vm-box {
    padding: 5px;
}

.vm-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: #111827;
}

.vm-badge::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 6px;
    background: #dc3545;
    border-radius: 2px;
}

.vm-text {
    font-size: 1.03rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 14px;
}

.vm-list {
    padding-left: 18px;
    margin-bottom: 0;
}

.vm-list li {
    font-size: 1.02rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* =====================================================
   CORE VALUES & QUALITY SECTION
===================================================== */
.about-glass h6 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

/* =====================================================
   PROCESS FLOW
===================================================== */
.process-box {
    background: #ffffff;
    padding: 26px 20px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0,0,0,.05);
    transition: all 0.25s ease;
}

.process-box i {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 8px;
}

.process-box h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.process-box p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.process-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
}

/* =====================================================
   MOBILE & TABLET FIXES
===================================================== */
@media (max-width: 991px) {

    .about-main::before {
        display: none;
    }

    .about-glass {
        padding: 2rem;
    }

    .about-heading {
        font-size: 1.8rem;
    }

    .about-title {
        font-size: 2.1rem;
    }
}
/* ================================
   WHY CHOOSE – MODERN
================================ */
.why-modern {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
}

.experience-card {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: #fff;
    padding: 50px 30px;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(220,53,69,0.35);
}

.experience-number {
    font-size: 4.2rem;
    font-weight: 900;
    display: block;
}

.experience-card h5 {
    font-weight: 700;
    margin-top: 10px;
}

.experience-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Feature list */
.why-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.why-feature i {
    font-size: 1.4rem;
    color: #dc3545;
    margin-top: 2px;
}

.why-feature span {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
}

/* Mobile refinement */
@media (max-width: 768px) {
    .experience-card {
        padding: 40px 20px;
        margin-bottom: 20px;
    }

    .experience-number {
        font-size: 3.5rem;
    }
}
/* =========================================
   WHY CHOOSE – PROFESSIONAL REFINEMENT
========================================= */

/* Right-side content discipline */
.why-content {
    max-width: 560px;          /* prevents text from stretching */
    padding-top: 12px;         /* aligns with image visually */
}

/* Bullet list typography */
.why-list-spaced li {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin-bottom: 20px;       /* vertical breathing space */
    line-height: 1.9;          /* enterprise readability */
    font-size: 0.96rem;
    font-weight: 400;
    color: #4a4f55;
}

/* Icon alignment */
.why-list-spaced li i {
    margin-top: 5px;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Desktop fine-tuning */
@media (min-width: 992px) {
    .why-content {
        padding-top: 22px;
    }

    .why-list-spaced li {
        margin-bottom: 22px;
        font-size: 0.98rem;
    }
}

/* Mobile refinement */
@media (max-width: 768px) {
    .why-content {
        max-width: 100%;
        padding-top: 10px;
    }

    .why-list-spaced li {
        margin-bottom: 16px;
        line-height: 1.75;
        font-size: 0.94rem;
    }
}
/* ================================
   WHY US & SERVICES – POLISH
================================ */
.services-list > div {
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.2s ease;
}

.services-list > div:hover {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
/* ================================
   WHY CHOOSE – COMPACT VERSION
================================ */
.why-content-compact {
    max-width: 520px;
    padding-top: 8px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 12px;       /* reduced spacing */
    line-height: 1.65;         /* compact but readable */
    font-size: 0.95rem;
    color: #4a4f55;
}

.about-list li i {
    color: #dc3545;
    margin-top: 4px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .why-content-compact {
        max-width: 100%;
        padding-top: 6px;
    }

    .about-list li {
        font-size: 0.93rem;
        margin-bottom: 10px;
    }
}
/* ===== SERVICES SECTION (PROFESSIONAL POLISH) ===== */

.services-section .service-card {
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.services-section .service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Image consistency */
.services-section .service-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
}

/* Title styling */
.services-section h5 {
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* Text readability */
.services-section p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
    color: #6c757d;
}

/* Remove underline + ensure full card click */
.services-section a {
    display: block;
    height: 100%;
}

/* Mobile spacing refinement */
@media (max-width: 767px) {
    .services-section .service-card {
        padding: 18px !important;
    }

    .services-section h5 {
        font-size: 1rem;
    }

    .services-section p {
        font-size: 0.9rem;
    }
}
 /* =========================================================
   RS DIGITAL CONTROLS – PRODUCT / SERVICE DROPDOWN (FINAL FIX)
   Prevent Right Cut | Desktop + Laptop + Mobile
========================================================= */

/* ================= BASE DROPDOWN ================= */
.navbar .dropdown-menu {
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dropdown-item {
    padding: 12px 18px;
    color: #222;
    white-space: normal;
}

.dropdown-item:hover {
    background-color: #f8d7da;
    color: #d41b1b;
}

/* ================= SUBMENU BASE ================= */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    display: none;
    border-radius: 10px;
}

/* Arrow */
.dropdown-submenu > a::after {
    content: "›";
    float: right;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* =================================================
   DESKTOP & LAPTOP – SMART POSITIONING
================================================= */
@media (min-width: 992px) {

    /* Default: open RIGHT */
    .dropdown-submenu > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 260px;
        margin-left: 6px;
        z-index: 1050;
    }

    /* Show on hover */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    /* 🔥 FIX: IF NEAR RIGHT EDGE → OPEN LEFT */
    .dropdown-menu-end .dropdown-submenu > .dropdown-menu {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 6px;
    }

    /* Arrow flip for left */
    .dropdown-menu-end .dropdown-submenu > a::after {
        content: "‹";
    }
}

/* =================================================
   MOBILE & TABLET – CLICK BASED
================================================= */
@media (max-width: 991px) {

    .navbar .dropdown-menu {
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 15px;
        box-shadow: none;
        border: none;
        padding-left: 10px;
    }

    .dropdown-submenu.open > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu.open > a::after {
        transform: rotate(90deg);
    }
}
/* ===============================
   HERO SLIDER – FULL SCREEN FIX
================================ */
.hero-slider {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Slides */
.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

/* Image */
.hero-slide img {
    width: 100vw;
     margin-top: 101px;
    height: auto;
    display: block;
}
@media (max-width: 768px) {
    .hero-slide img {
        width: 100vw;
        height: auto;
    }
}

