/* Service Page Enhancements - Readability & Contrast Optimized */
.rich-service-content {
    position: relative;
    color: #ffffff !important;
    /* Ensure base color is pure white */
}

.lead-text {
    font-size: 21px;
    line-height: 1.7;
    color: #ffffff !important;
    /* Maximum brightness for lead text */
    font-weight: 500;
    /* Increased weight for visibility */
    border-left: 5px solid var(--ridda-primary-color);
    padding-left: 25px;
    margin-bottom: 45px;
}

.service-content-body p {
    color: #f1f1f1 !important;
    /* Very high contrast off-white */
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 25px;
}

.feature-box {
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* More visible border */
    background: rgba(255, 255, 255, 0.04) !important;
}

.feature-box:hover {
    background: var(--ridda-primary-color) !important;
    border-color: var(--ridda-primary-color);
    transform: translateY(-10px);
}

.feature-box:hover h4,
.feature-box:hover p,
.feature-box:hover i {
    color: #000000 !important;
    /* Maximum contrast on hover */
    font-weight: 700;
}

/* Fix for lighter boxes on dark background */
.bgc-black .feature-box.bgc-lighter h4,
.bgc-black .feature-box.bgc-lighter p {
    color: #111111 !important;
    font-weight: 600;
}

.cta-banner {
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
    border: none;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 110, 245, 0.92);
    /* Deeper blue for better text contrast */
    z-index: -1;
    border-radius: inherit;
}

.cta-banner.bgc-secondary::before {
    background: rgba(30, 210, 100, 0.95);
    /* Deeper green for better text contrast */
}

.cta-banner h2,
.cta-banner p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-content-body h3 {
    font-size: 38px;
    margin-top: 60px;
    margin-bottom: 35px;
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.service-content-body ul.list-style-one li {
    font-size: 19px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    color: #ffffff !important;
    font-weight: 500;
}

.service-content-body ul.list-style-one li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #28f67a;
    /* Brighter green for icons */
    margin-right: 18px;
    font-size: 22px;
}

.process-image-item {
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.process-image-item img {
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.process-image-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #ffffff;
    /* White background for number for max contrast */
    color: #111111;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-weight: 800;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.mt-80 {
    margin-top: 80px;
}

/* --- Next-Gen Style Additions - Readability Focus --- */

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    /* Slightly darker for better isolation */
    --glass-border: rgba(255, 255, 255, 0.12);
    --neon-blue: #146EF5;
    --neon-glow: 0 0 20px rgba(20, 110, 245, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
}

.glass-card p,
.glass-card li {
    color: #ffffff !important;
    /* Force white in glass cards */
    font-weight: 500;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: var(--neon-glow);
}

.neon-text {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 15px var(--neon-blue);
    font-weight: 800;
}

.glow-border {
    position: relative;
    z-index: 1;
}

.glow-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), transparent, #28f67a);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.5;
    /* Increased opacity for border */
}

/* Capability Matrix / Technical Table */
.tech-matrix {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.tech-matrix tr {
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease;
}

.tech-matrix tr:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.08);
}

.tech-matrix td {
    padding: 22px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    color: #ffffff !important;
    font-size: 17px;
}

.tech-matrix td:first-child {
    border-left: 1px solid var(--glass-border);
    border-radius: 15px 0 0 15px;
    font-weight: 800;
    color: #28f67a !important;
    /* High contrast green for labels */
}

.tech-matrix td:last-child {
    border-right: 1px solid var(--glass-border);
    border-radius: 0 15px 15px 0;
    text-align: right;
    font-weight: 500;
}

/* FAQ Styles */
.faq-nextgen .accordion-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--glass-border) !important;
    margin-bottom: 20px;
    border-radius: 15px;
}

.faq-nextgen .accordion-button {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 25px;
    font-size: 18px;
}

.faq-nextgen .accordion-button:not(.collapsed) {
    color: var(--ridda-secondary-color) !important;
}

.faq-nextgen .accordion-body {
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
    /* Pure white for FAQ answers */
    padding: 30px;
    line-height: 1.9;
    font-size: 17px;
    font-weight: 400;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 6px;
    /* Slightly thicker */
    background: linear-gradient(to right, #146ef5, #28f67a, #ffd043);
    z-index: 10000;
    box-shadow: 0 0 15px rgba(20, 110, 245, 0.6);
}

.immersive-image {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    /* Brighter container */
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
}

.immersive-image:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(20, 110, 245, 0.4);
    transform: translateY(-8px);
    border-color: var(--ridda-primary-color);
}

.why-us-icons .glass-card {
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.why-us-icons .glass-card h5 {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 17px;
}

.why-us-icons .glass-card i {
    text-shadow: 0 0 15px rgba(20, 110, 245, 0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-us-icons .glass-card:hover i {
    transform: scale(1.4) rotate(10deg);
}

/* --- Header & Navigation Fixes --- */
.main-header.ridda-custom-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: transparent;
    /* Default is transparent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.main-header.ridda-custom-header .logo-outer {
    padding: 15px 0;
    transition: all 0.4s ease;
}

.main-header.ridda-custom-header .navigation li>a {
    color: #ffffff !important;
}

.main-header.fixed-header {
    position: fixed !important;
    background: #146ef5 !important;
    /* Solid Brand Blue */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 0;
    animation: slideInDown 0.4s ease;
}

.main-header.fixed-header .logo-outer {
    padding: 10px 0;
    /* Slightly more compact when sticky */
}

.main-header.fixed-header .navigation li>a {
    color: #ffffff !important;
    /* Ensure white text on blue background */
}

.main-header.fixed-header .header-number a,
.main-header.fixed-header .header-number i {
    color: #ffffff !important;
}

/* Teklif Al Button Contrast Fix for Sticky Header */
.main-header.fixed-header .menu-btns .theme-btn {
    background: #FFD043 !important;
    /* Yellow for high contrast on blue */
    color: #111111 !important;
    border: none;
}

.main-header.fixed-header .menu-btns .theme-btn span {
    color: #111111 !important;
}

.main-header.fixed-header .menu-btns .theme-btn:hover {
    background: #ffffff !important;
    color: #146ef5 !important;
}

.main-header.fixed-header .menu-btns .theme-btn:hover span {
    color: #146ef5 !important;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Mobile Menu Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #111111;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-header .navigation li a {
        color: #ffffff !important;
    }
}

/* Dropdown Menu Polish */
.main-header .navigation li ul {
    background: #111111 !important;
    /* Dark background for dropdown */
    border-top: 3px solid #146ef5;
    /* Brand blue accent */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.main-header .navigation li ul li a {
    color: #ffffff !important;
    font-weight: 500;
    padding: 12px 25px !important;
    transition: all 0.3s ease;
}

.main-header .navigation li ul li a:hover {
    background: #146ef5 !important;
    color: #ffffff !important;
    padding-left: 30px !important;
}

.main-header.fixed-header .navigation li a:hover {
    color: #ffd043 !important;
    /* Yellow highlight for maximum visibility on blue */
}

/* Polishing the "Teklif Al" Button globally in header */
.main-header .menu-btns .theme-btn {
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-header.fixed-header .menu-btns .theme-btn {
    background: #ffd043 !important;
    color: #111111 !important;
}

.main-header.fixed-header .menu-btns .theme-btn:hover {
    background: #ffffff !important;
    color: #146ef5 !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Fix for possible white gaps in header */
@media (min-width: 992px) {
    .main-header.fixed-header .header-inner {
        background: transparent !important;
    }
}

@media (max-width: 768px) {
    .why-us-icons .col-6 {
        padding: 8px;
    }

    .lead-text {
        font-size: 19px;
    }
}

/* --- Hero Section Modern Animations --- */
.hero-neon-title {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {

    0%,
    100% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(20, 110, 245, 0.2);
    }

    50% {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(20, 110, 245, 0.4);
    }
}

.hero-text-reveal {
    animation: smoothFadeIn 1s ease-out both;
}

@keyframes smoothFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

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

.hero-floating {
    animation: gentleFloat 6s infinite ease-in-out;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-btn-glow {
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-btn-glow:hover {
    box-shadow: 0 6px 25px rgba(20, 110, 245, 0.4);
    transform: translateY(-3px);
}

.hero-video-animated {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.hero-video-animated:hover {
    border-color: rgba(20, 110, 245, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(20, 110, 245, 0.3);
    transform: scale(1.02);
}