:root {
    --primary-color: #498BD8;
    --secondary-color: #4CB0DA;
    --accent-color: #1e3a8a;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    animation: loaderPulse 2s infinite ease-in-out;
}


.loader-logo {
    width: 120px;
    height: auto;
    z-index: 2;
}

.loader-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    background: linear-gradient(to left, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
    letter-spacing: 0px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to left, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    animation: progressFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    40% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

/* Animations & Reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blob-morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) !important;
}

.reveal-right {
    transform: translateX(-50px);
}

.reveal-left {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0;
    /* Removed padding to sit flush */
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

header.scrolled .top-bar {
    display: none;
    /* Auto-hide top bar on scroll for cleaner look */
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    /* Adjusted padding for the nav itself */
}

/* Top Bar Styling */
.top-bar {
    background: var(--accent-color);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.top-bar-info {
    display: flex;
    gap: 1.5rem;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.top-bar-info i {
    color: var(--secondary-color);
}

.top-bar-social {
    display: flex;
    gap: 1.2rem;
}

.top-bar-social a {
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.logo img {
    height: 60px;
    /* Adjust height to fit header */
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation Layout */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 2px 10px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.search-container:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(73, 139, 216, 0.1);
}

.search-container input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    outline: none;
    font-size: 0.9rem;
    width: 150px;
    color: var(--text-dark);
}

.search-container button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: var(--transition);
}

.search-container button:hover {
    color: var(--primary-color);
}

.remote-platform-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(73, 139, 216, 0.2);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.remote-platform-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 139, 216, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    /* First child (content) on the right in RTL */
    align-items: center;
    justify-content: center;
    padding: 200px 10% 100px;
    /* Increased top padding to clear the top bar and header */
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
    gap: 6rem;
    /* Wide gap for premium feel */
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Animation */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    animation: float-blob 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -5%;
    background-color: var(--primary-color);
}

.blob-2 {
    bottom: -10%;
    left: -5%;
    background-color: var(--secondary-color);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    animation-delay: -10s;
}

/* Tech Background Elements */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(73, 139, 216, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(73, 139, 216, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.3;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

/* Data Flow Animation (Elegant Tech Feel) */
.tech-data-flow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.15;
    z-index: 1;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--primary-color));
    animation: particle-fall var(--duration) linear infinite;
    animation-delay: var(--delay);
    left: var(--left);
    top: -100px;
}

@keyframes particle-fall {
    0% {
        transform: translateY(0) scaleY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(11vh) scaleY(1);
    }

    90% {
        opacity: 1;
        transform: translateY(99vh) scaleY(1);
    }

    100% {
        transform: translateY(110vh) scaleY(0);
        opacity: 0;
    }
}

.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-icons i {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.15;
    font-size: 2.5rem;
    animation: icon-float 15s infinite ease-in-out;
}

.icon-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: -3s;
}

.icon-3 {
    bottom: 20%;
    left: 25%;
    animation-delay: -6s;
}

.icon-4 {
    top: 30%;
    right: 30%;
    animation-delay: -9s;
}

@keyframes icon-float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(30px, -50px) rotate(15deg) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-15deg) scale(0.9);
    }
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1) rotate(10deg);
    }

    66% {
        transform: translate(-50px, 150px) scale(0.9) rotate(-10deg);
    }

    100% {
        transform: translate(50px, -50px) scale(1.05) rotate(5deg);
    }
}

.hero-content {
    flex: 1;
    text-align: right;
    max-width: 600px;
    z-index: 10;
}

.slider-container {
    position: relative;
    height: 250px;
    /* Just right for text */
    margin-bottom: 2.5rem;
    overflow: visible;
}

.slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    visibility: visible;
}

.slide i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: block;
}

.slide h1 {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.slide p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 580px;
}

.slider-dots {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(73, 139, 216, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

.dot.active {
    background: var(--primary-color);
    width: 35px;
    border-radius: 20px;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(73, 139, 216, 0.3);
}


.hero-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    z-index: 10;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(73, 139, 216, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(73, 139, 216, 0.3);
}

.btn-primary.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary.secondary-btn:hover {
    background: var(--primary-color);
    color: white;
}

.btn-download {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(73, 139, 216, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-download i {
    font-size: 1rem;
}

.btn-download:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(73, 139, 216, 0.3);
    color: white;
}

/* Synced Image Slider */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-slider .image-container {
    position: absolute;
    width: 420px;
    height: 420px;
    opacity: 0;
    transform: scale(0.9) rotate(3deg);
    filter: brightness(0.8) blur(10px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.image-slider .image-container.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: brightness(1) blur(0);
    z-index: 5;
}

.image-slider .image-container::before {
    content: '';
    position: absolute;
    inset: -15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 10s linear infinite;
    z-index: -1;
    opacity: 0.4;
}

.image-slider .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 10s linear infinite reverse;
    border: 8px solid white;
    box-shadow: var(--shadow-lg);
}

/* Sections Base */
.services {
    padding: 8rem 2rem;
    background: var(--white);
    text-align: center;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 4rem auto 0;
}

.service-card {
    background: #fbfdff;
    padding: 3.5rem 2rem;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid #edf2f7;
    text-align: right;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Stats */
.stat-item h2 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #498BD8;
    color: white;
    padding: 6rem 2rem 2rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    text-align: right;
}

.social-links a {
    color: white;
    font-size: 1.8rem;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* LTR Support */
[dir="ltr"] {
    direction: ltr;
}

[dir="ltr"] .hero {
    flex-direction: row;
}

[dir="ltr"] .hero-content {
    text-align: left;
}

[dir="ltr"] .service-card {
    text-align: left;
}

[dir="ltr"] .footer-content {
    text-align: left;
}

[dir="ltr"] .nav-links {
    margin-right: 0;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image {
        min-height: 350px;
        width: 100%;
    }

    .image-container {
        width: 350px;
        height: 350px;
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Floating Action Buttons */
.floating-btns {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: btnPulse 2s infinite;
    /* Added animation */
}

@keyframes btnPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(73, 139, 216, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

.floating-btn.whatsapp {
    background-color: #25d366;
    animation-delay: 0.5s;
}

.floating-btn.email {
    background-color: var(--primary-color);
    animation-delay: 0s;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation-play-state: paused;
    /* Pause pulse on hover */
}

@media (max-width: 768px) {
    .floating-btns {
        bottom: 20px;
        left: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* About Company Section Styles */
.about-company {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.about-company .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text side gets more space */
    gap: 5rem;
    align-items: center;
    margin-bottom: 80px;
}

.about-image-side {
    position: relative;
}

.about-img-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-wrapper img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.vision-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(73, 139, 216, 0.4);
    animation: floating 3s ease-in-out infinite;
}

.vision-badge i {
    font-size: 1.5rem;
}

.vision-badge span {
    font-weight: 800;
    font-size: 1.1rem;
}

.about-text-side .sub-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.about-text-side .main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 2rem;
}

.about-text-side .content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    font-weight: 700;
    color: var(--text-dark);
}

/* About Cards Row */
.about-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 3.5rem 2.2rem;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(73, 139, 216, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px -12px rgba(73, 139, 216, 0.15);
    border-color: var(--primary-color);
}

.about-card:hover::before {
    transform: scale(10);
    opacity: 0.05;
}

.about-card .icon-box {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--white) 0%, #f1f7ff 100%);
    color: var(--primary-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    box-shadow: 0 10px 20px rgba(73, 139, 216, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(73, 139, 216, 0.05);
}

.about-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(73, 139, 216, 0.3);
}

.about-card h3 {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.about-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 500;
    transition: var(--transition);
}

.about-card:hover p {
    color: var(--text-dark);
}

/* Vision Badge Floating Animation */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.about-text-side .main-title {
    position: relative;
    display: inline-block;
}

.about-text-side .main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 800;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-cards-row {
        grid-template-columns: 1fr;
    }

    .about-text-side .main-title {
        font-size: 2rem;
    }
}

/* Services Section Styles */
.services {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

#services .section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

#services .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    /* Reduced padding */
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(73, 139, 216, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(73, 139, 216, 0.12);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 2.2rem;
    /* Reduced icon size */
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.2rem;
    /* Slightly smaller title */
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    /* Slightly smaller text */
    line-height: 1.6;
}

@media (max-width: 1024px) {
    #services .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    #services .services-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .service-card {
        padding: 2.5rem 1.5rem;
    }
}

/* Premium Stats Section Styles */
.stats-section {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stats-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect inside the bar */
.stats-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(73, 139, 216, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.stats-bar:hover::before {
    opacity: 1;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover {
    transform: translateY(-10px);
}

/* Vertical dividers between items */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    /* Since RTL, left is the separator side */
    top: 15%;
    height: 70%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.stat-item .stat-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(73, 139, 216, 0.1) 0%, rgba(73, 139, 216, 0.02) 100%);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.5s ease;
    box-shadow: 0 10px 20px rgba(73, 139, 216, 0.05);
    border: 1px solid rgba(73, 139, 216, 0.1);
}

.stat-item:hover .stat-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(73, 139, 216, 0.2);
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
}

.stat-item .stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: var(--text-dark);
}

/* Responsive updates for the unified bar */
@media (max-width: 992px) {
    .stats-bar {
        grid-template-columns: 1fr;
        border-radius: 20px;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }

    .stat-item:not(:last-child)::after {
        left: 15%;
        top: auto;
        bottom: -1.5rem;
        width: 70%;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.06), transparent);
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: #f8fbff;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(73, 139, 216, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(73, 139, 216, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.testimonials-section .section-title {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.testimonials-container {
    max-width: 100%;
    margin: 40px auto 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.testimonials-container::before,
.testimonials-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* RTL-aware gradients for smooth fading on edges */
.testimonials-container::after {
    left: 0;
    background: linear-gradient(to right, #f8fbff, transparent);
}

.testimonials-container::before {
    right: 0;
    background: linear-gradient(to left, #f8fbff, transparent);
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-x 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-x {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
        /* Moves entire track right to loop the duplicated items */
    }
}

.testimonial-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    text-align: right;
    position: relative;
    border: 1px solid rgba(73, 139, 216, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    overflow: hidden;
    width: 320px;
    flex-shrink: 0;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(73, 139, 216, 0.15);
    border-color: rgba(73, 139, 216, 0.2);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2.5rem;
    color: rgba(73, 139, 216, 0.06);
    transition: all 0.4s ease;
    z-index: -1;
}

.testimonial-card:hover .quote-icon {
    transform: scale(1.1) rotate(5deg);
    color: rgba(73, 139, 216, 0.1);
}

.testimonial-card .stars {
    color: #FFD700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    gap: 5px;
}

.testimonial-card .testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

.testimonial-card .client-info h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    font-weight: 800;
}

.testimonial-card .client-info span {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-container::before,
    .testimonials-container::after {
        width: 50px;
    }
}

/* Contact Section Premium Design */
.contact-section {
    padding: 100px 0;
    background-color: #fbfdff;
    position: relative;
    overflow: hidden;
}

.contact-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(73, 139, 216, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.contact-section .section-title {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 50px;
}

.contact-section .section-title h2 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.contact-section .section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(73, 139, 216, 0.15);
    overflow: hidden;
    border: 1px solid rgba(73, 139, 216, 0.1);
}

.contact-info-side {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-info-side::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info-side::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-info-side h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.contact-info-side>p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-info-item .icon-box {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--white);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info-item:hover .icon-box {
    background: var(--white);
    color: var(--primary-color);
    transform: rotate(5deg) scale(1.05);
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.info-content p,
.info-content a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
}

.info-content a:hover {
    color: var(--white);
}

.contact-social {
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}

.contact-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-social .social-links {
    display: flex;
    gap: 1rem;
}

.contact-social .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0;
}

.contact-social .social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form-side {
    padding: 2.5rem 2rem;
    background: var(--white);
}

.contact-form-side h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(73, 139, 216, 0.1);
}

.form-group label {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 0.3rem;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -0.6rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--white);
    font-weight: 600;
}

.form-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info-side {
        padding: 2.5rem 2rem;
    }

    .contact-form-side {
        padding: 2.5rem 2rem;
    }
}

/* Page Header Section */
.page-header {
    padding: 160px 0 100px;
    background: #e2e8f0;
    /* Slightly clearer/deeper gray */
    color: var(--text-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
    /* Bubbles clearer */
    background-size: 40px 40px;
    opacity: 0.15;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

.page-header .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Sidebar Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    margin-top: 50px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(73, 139, 216, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    color: var(--text-dark);
}

.search-widget form {
    position: relative;
}

.search-widget input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
}

.search-widget input:focus {
    border-color: var(--primary-color);
}

.search-widget button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* Premium Blog Post Card Styles */
.blog-post-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    height: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(73, 139, 216, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(73, 139, 216, 0.12);
    border-color: rgba(73, 139, 216, 0.2);
}

.blog-post-image-wrapper {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.blog-post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-post-card:hover .blog-post-image-wrapper img {
    transform: scale(1.1);
}

.blog-post-content {
    width: 60%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-post-category {
    background: rgba(73, 139, 216, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
}

.blog-post-content h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-content h3 {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover {
    gap: 1rem;
}

.read-more-link:hover i {
    transform: translateX(-5px);
    /* Move left in RTL */
}

@media (max-width: 768px) {
    .blog-post-card {
        flex-direction: column;
        height: auto;
    }

    .blog-post-image-wrapper,
    .blog-post-content {
        width: 100%;
    }

    .blog-post-image-wrapper {
        height: 250px;
    }

    .blog-post-content {
        padding: 1.5rem;
    }
}

/* Premium Newsletter Widget Styling */
.newsletter-widget {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%) !important;
    padding: 1.8rem !important;
    border-radius: 25px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2) !important;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.newsletter-widget h3 {
    font-size: 1.15rem !important;
    color: white !important;
    margin-bottom: 0.8rem !important;
    border-bottom: none !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.newsletter-widget p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
    opacity: 0.9 !important;
    color: white !important;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    position: relative;
    z-index: 1;
}

.newsletter-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.newsletter-input-group i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-input-group input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    border-radius: 12px !important;
    border: none !important;
    font-size: 0.85rem !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.newsletter-submit-btn {
    width: 100%;
    padding: 0.75rem !important;
    border-radius: 12px !important;
    background: var(--white) !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-submit-btn:hover {
    background: #f0f7ff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Footer Logo Styling */
.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

/* Government License Logo in Footer */
.footer-license-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.footer-license-img {
    height: 75px;
    width: auto;
    filter: none;
    /* Changed to none if original colors are preferred, or just keep white but make it bold */
    opacity: 1;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.footer-license-img:hover {
    opacity: 1;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .footer-license-container {
        justify-content: center;
    }
}

/* Premium Footer Quick Links Styling */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links-list li:hover {
    transform: translateX(-8px);
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-links-list a i {
    font-size: 0.8rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--white) !important;
    padding-right: 5px;
}

.footer-links-list a:hover i {
    color: var(--white);
    transform: scale(1.2);
}

/* Minimalist Accreditation Tag in Hero - Identity Aligned */
.accreditation-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 176, 218, 0.12);
    /* Subtle tint of secondary-color */
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 4px;
    border-right: 3px solid var(--primary-color);
    border-left: 1px solid rgba(76, 176, 218, 0.2);
    border-top: 1px solid rgba(76, 176, 218, 0.2);
    border-bottom: 1px solid rgba(76, 176, 218, 0.2);
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out forwards;
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 15px rgba(76, 176, 218, 0.1);
}

.accreditation-badge img {
    height: 24px;
    width: auto;
    opacity: 1;
}

.accreditation-badge span {
    color: var(--secondary-color);
    /* Changed from white to identity color */
    font-size: 0.85rem;
    font-weight: 700;
    /* Bold for better visibility */
    letter-spacing: 0.1px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .accreditation-badge {
        padding: 5px 12px;
        margin-bottom: 15px;
    }

    .accreditation-badge img {
        height: 20px;
    }

    .accreditation-badge span {
        font-size: 0.75rem;
    }
}

/* Base Menu Toggle styling (hidden on desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:focus {
    outline: none;
}

/* --- Added Global Mobile Responsiveness Updates --- */
@media (max-width: 768px) {

    /* Header & Navbar Fixes */
    .top-bar-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
        padding: 8px 10px;
    }

    .top-bar-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 20px;
        text-align: center;
    }

    .top-bar-social {
        justify-content: center;
    }

    header nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* Sidebar Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden offscreen by default (RTL) */
        width: 300px;
        max-width: 80%;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        margin-right: 0;
        padding: 80px 20px 30px;
        gap: 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
        /* Slide in */
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 12px 15px;
        border-radius: 8px;
        border-bottom: 1px solid #f1f5f9;
        margin-right: 0;
        transition: transform 0.3s;
    }

    .nav-links a:hover {
        transform: translateX(-5px);
    }

    .nav-actions {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 0;
        margin-bottom: 5px;
        order: -1;
        /* Move buttons to the top of the menu */
    }

    .search-container {
        width: 100%;
        background: #f8fafc;
    }

    .search-container input {
        width: 100%;
    }

    .remote-platform-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Hero Section Adjustments */
    .hero {
        padding-top: 190px !important;
        flex-direction: column-reverse !important;
    }

    .hero-image {
        min-height: 280px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 20px 0;
    }

    .image-slider .image-container {
        width: 260px !important;
        height: 260px !important;
        position: absolute !important;
        opacity: 0 !important;
        display: none;
        transition: opacity 1s ease;
    }

    .image-slider .image-container.active {
        display: block;
        opacity: 1 !important;
        position: relative !important;
        z-index: 5;
    }

    .slide h1 {
        font-size: 2rem !important;
    }

    .slide p {
        font-size: 1rem !important;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .btn-download {
        justify-content: center;
    }

    .btn-primary.secondary-btn {
        margin-right: 0 !important;
    }

    .blob {
        display: none;
        /* remove background blobs on mobile for better performance & visibility */
    }

    /* Typography globally scaled */
    .section-title h2 {
        font-size: 2rem !important;
    }

    .about-text-side .main-title {
        font-size: 1.8rem !important;
    }

    .stat-item .stat-number {
        font-size: 1.5rem !important;
    }

    /* Contact Details Grid fix */
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .contact-social .social-links {
        justify-content: center;
    }

    /* Footer adjustments */
    .footer-content {
        text-align: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }

    .social-links a {
        margin-left: 0 !important;
    }

    .footer-links-list li:hover {
        transform: translateX(0) scale(1.05);
        /* Avoid right shift overflow on mobile */
    }
}

/* Video Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.video-container {
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
}