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

/* ------------------------------
   1️⃣ GLOBAL STYLES
------------------------------ */
body {
    font-family: 'Segoe UI', sans-serif;
    padding-top: 90px; /* spacing for fixed navbar */
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

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.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;
        width: 100%;
        height: 100%;
        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
------------------------------ */
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d41b1b;
    margin: 10px auto 0;
    border-radius: 2px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.service-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.4s ease-in-out;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-card h4 {
    color: #000;
    margin-top: 15px;
    text-transform: capitalize;
}

.service-card p {
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ------------------------------
   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: #d41b1b;
}

/* ------------------------------
   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
------------------------------ */
.about-hero {
    background: url('/images/about-banner.jpg') center center / cover no-repeat;
    height: 60vh;
    min-height: 350px;
    position: relative;
}

    .about-hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.55);
    }

    .about-hero h1 {
        color: #fff;
        letter-spacing: 2px;
        z-index: 2;
    }

.about-content h4 {
    color: #222;
}

.about-content p,
.about-content ul li {
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-content i {
    transition: transform 0.3s ease;
}

    .about-content i:hover {
        transform: scale(1.15);
        color: #a30d0d;
    }

/* ------------------------------
   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 ===== */

/* Hero Section */
.about-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/about-banner.jpg') center center / cover no-repeat;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative;
}

    .about-hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    .about-hero h1 {
        font-weight: 700;
        letter-spacing: 1.5px;
    }

    .about-hero p {
        font-size: 1.1rem;
        color: #f8f9fa;
    }

/* About Cards */
.about-card {
    border: none;
    transition: all 0.3s ease;
}

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

/* Icon Circle */
.icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 2rem;
}

/* Values Section */
.about-values {
    transition: all 0.3s ease;
}

    .about-values:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }

    .about-values ul li {
        font-size: 1.05rem;
        color: #555;
    }

    .about-values i {
        vertical-align: middle;
    }

/* Section Title */
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #d41b1b;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
    }

        .about-hero h1 {
            font-size: 1.8rem;
        }

    .about-values {
        padding: 2rem;
    }
}
/* ===== Premium About Hero Section ===== */

.about-hero-pro {
    height: 70vh;
    min-height: 450px;
    background: url('/images/about-banner.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.4) );
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeSlideUp 1.3s ease-out forwards;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 15px;
    color: #f2f2f2;
    line-height: 1.6;
}

/* Decorative Wave */
.hero-wave img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0.9;
}

/* Smooth fade/slide animation */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .about-hero-pro {
        height: 55vh;
    }
}
