/* Home Page Styles - Specific to home page only */
:root {
    --brand-lilac: #9c7ff9;
    --brand-indigo: #5059c7;
    --brand-teal: #71a7ae;
}

/* Note: Body background is handled in app.css for all pages */

.home-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    background: #0a0a1a;
    padding-top: 0;
}

/* Hero Background Container */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Gradient Base */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4B0082 0%, #2D0047 30%, #1a0033 50%, #001a33 70%, #003d5c 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated Particles - Enhanced */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00CED1;
    border-radius: 50%;
    box-shadow: 0 0 10px #00CED1, 0 0 20px #00CED1, 0 0 30px rgba(0, 206, 209, 0.5);
    animation: particleGlow 3s infinite ease-in-out;
    opacity: 0.8;
    cursor: pointer;
    transition: box-shadow 0.3s ease, z-index 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
    pointer-events: auto;
    z-index: 1;
    --scale: 1;
    --parallax-x: 0;
    --parallax-y: 0;
    --particle-scale: 1;
    transform: translate3d(calc(var(--parallax-x) * 1px), calc(var(--parallax-y) * 1px), 0) scale(var(--particle-scale));
}

.particle.hovered {
    z-index: 100;
    animation-play-state: paused;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    left: 20%;
    top: 40%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 30%;
    top: 60%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.particle:nth-child(4) {
    left: 40%;
    top: 30%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    left: 50%;
    top: 50%;
    animation-delay: 3s;
    animation-duration: 19s;
}

.particle:nth-child(6) {
    left: 60%;
    top: 70%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    left: 70%;
    top: 25%;
    animation-delay: 2.5s;
    animation-duration: 21s;
}

.particle:nth-child(8) {
    left: 80%;
    top: 45%;
    animation-delay: 4.5s;
    animation-duration: 18s;
}

.particle:nth-child(9) {
    left: 90%;
    top: 65%;
    animation-delay: 1.5s;
    animation-duration: 16s;
}

.particle:nth-child(10) {
    left: 15%;
    top: 80%;
    animation-delay: 3.5s;
    animation-duration: 20s;
}

.particle:nth-child(11) {
    left: 25%;
    top: 15%;
    animation-delay: 0.5s;
    animation-duration: 17s;
}

.particle:nth-child(12) {
    left: 35%;
    top: 35%;
    animation-delay: 2.2s;
    animation-duration: 19s;
}

.particle:nth-child(13) {
    left: 45%;
    top: 55%;
    animation-delay: 4.2s;
    animation-duration: 18s;
}

.particle:nth-child(14) {
    left: 55%;
    top: 75%;
    animation-delay: 1.2s;
    animation-duration: 16s;
}

.particle:nth-child(15) {
    left: 65%;
    top: 10%;
    animation-delay: 3.2s;
    animation-duration: 21s;
}

.particle:nth-child(16) {
    left: 75%;
    top: 30%;
    animation-delay: 5.2s;
    animation-duration: 17s;
}

.particle:nth-child(17) {
    left: 85%;
    top: 50%;
    animation-delay: 2.8s;
    animation-duration: 19s;
}

.particle:nth-child(18) {
    left: 95%;
    top: 70%;
    animation-delay: 4.8s;
    animation-duration: 18s;
}

.particle:nth-child(19) {
    left: 5%;
    top: 40%;
    animation-delay: 1.8s;
    animation-duration: 20s;
}

.particle:nth-child(20) {
    left: 12%;
    top: 60%;
    animation-delay: 3.8s;
    animation-duration: 16s;
}

/* Particle animation is now handled by JavaScript for parallax compatibility */

@keyframes particleGlow {

    0%,
    100% {
        box-shadow: 0 0 10px #00CED1, 0 0 20px #00CED1, 0 0 30px rgba(0, 206, 209, 0.5);
    }

    50% {
        box-shadow: 0 0 20px #00CED1, 0 0 40px #00CED1, 0 0 60px rgba(0, 206, 209, 0.8);
    }
}

/* Particle hover effect is handled by JavaScript for parallax compatibility */
.particle.hovered {
    box-shadow: 0 0 30px #00CED1, 0 0 60px #00CED1, 0 0 90px rgba(0, 206, 209, 1) !important;
}

/* Floating Geometric Shapes - Enhanced */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.3;
    animation: shapeFloat 25s infinite ease-in-out, shapePulse 4s infinite ease-in-out;
    will-change: transform, opacity;
    transition: opacity 0.5s ease, transform 0.5s ease;
    --parallax-x: 0;
    --parallax-y: 0;
}

.shape-1 {
    width: 80px;
    height: 80px;
    border: 2px solid #00CED1;
    border-radius: 20% 80% 20% 80%;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.4);
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00CED1, #4B0082);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 40%;
    left: 70%;
    animation-delay: 5s;
    filter: blur(1px);
}

.shape-3 {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(75, 0, 130, 0.6);
    border-radius: 50%;
    top: 60%;
    left: 20%;
    animation-delay: 10s;
    box-shadow: 0 0 30px rgba(75, 0, 130, 0.3);
}

.shape-4 {
    width: 70px;
    height: 70px;
    background: rgba(0, 206, 209, 0.2);
    transform: rotate(45deg);
    top: 25%;
    left: 80%;
    animation-delay: 7s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    border: 2px dashed #00CED1;
    border-radius: 30%;
    top: 75%;
    left: 60%;
    animation-delay: 12s;
    opacity: 0.25;
}

.shape-6 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4B0082, #00CED1);
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    top: 50%;
    left: 5%;
    animation-delay: 15s;
}

@keyframes shapeFloat {

    0%,
    100% {
        transform: translate(calc(var(--parallax-x, 0) * 1px), calc(var(--parallax-y, 0) * 1px)) translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(calc(var(--parallax-x, 0) * 1px), calc(var(--parallax-y, 0) * 1px)) translate(30px, -40px) rotate(120deg);
    }

    66% {
        transform: translate(calc(var(--parallax-x, 0) * 1px), calc(var(--parallax-y, 0) * 1px)) translate(-20px, 30px) rotate(240deg);
    }
}

@keyframes shapePulse {

    0%,
    100% {
        opacity: 0.3;
        filter: brightness(1);
    }

    50% {
        opacity: 0.5;
        filter: brightness(1.3);
    }
}

/* Neural Network SVG - Enhanced */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.network-lines {
    stroke: url(#lineGradient);
    stroke-width: 2;
    stroke-opacity: 0.5;
    filter: drop-shadow(0 0 3px rgba(0, 206, 209, 0.5));
    animation: networkPulse 4s ease-in-out infinite;
}

.network-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 8s ease-in-out infinite;
}

.network-line:nth-child(1) {
    animation-delay: 0s;
}

.network-line:nth-child(2) {
    animation-delay: 0.5s;
}

.network-line:nth-child(3) {
    animation-delay: 1s;
}

.network-line:nth-child(4) {
    animation-delay: 1.5s;
}

.network-line:nth-child(5) {
    animation-delay: 2s;
}

.network-line:nth-child(6) {
    animation-delay: 2.5s;
}

.network-line:nth-child(7) {
    animation-delay: 3s;
}

.network-line:nth-child(8) {
    animation-delay: 3.5s;
}

.network-line:nth-child(9) {
    animation-delay: 4s;
}

.network-line:nth-child(10) {
    animation-delay: 4.5s;
}

.network-line:nth-child(11) {
    animation-delay: 5s;
}

.network-line:nth-child(12) {
    animation-delay: 5.5s;
}

.network-line:nth-child(13) {
    animation-delay: 6s;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

@keyframes networkPulse {

    0%,
    100% {
        stroke-opacity: 0.3;
    }

    50% {
        stroke-opacity: 0.7;
    }
}

.network-nodes {
    fill: #00CED1;
    opacity: 0.6;
}

.network-node {
    fill: #00CED1;
    filter: drop-shadow(0 0 5px rgba(0, 206, 209, 0.8));
    opacity: 0.6;
}

/* Circuit Pattern - Enhanced */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
    will-change: transform;
    transition: opacity 0.5s ease, transform 0.3s ease;
    animation: circuitPatternShift 20s linear infinite;
}

@keyframes circuitPatternShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

/* Wave Animation - Enhanced */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 206, 209, 0.1), transparent);
    animation: waveMove 10s linear infinite;
    will-change: transform;
    transition: transform 0.3s ease;
}

.wave-1 {
    animation-delay: 0s;
    opacity: 0.3;
    height: 150px;
}

.wave-2 {
    animation-delay: 2s;
    opacity: 0.2;
    height: 120px;
    animation-duration: 12s;
}

.wave-3 {
    animation-delay: 4s;
    opacity: 0.15;
    height: 100px;
    animation-duration: 14s;
}

@keyframes waveMove {
    0% {
        transform: translateX(0) translateY(0);
    }

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

    100% {
        transform: translateX(-100%) translateY(0);
    }
}

/* Text Overlay Gradient - Enhanced */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 26, 0.6) 50%, rgba(10, 10, 26, 0.8) 80%, rgba(10, 10, 26, 0.95) 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Enhanced gradient overlay for better text contrast */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.2) 0%, transparent 50%, rgba(0, 206, 209, 0.1) 100%);
    opacity: 0.6;
}

.home-hero .carousel-item {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 180px 0 5rem 0;
    position: relative;
    z-index: 10;
}

.home-hero .carousel-caption {
    position: static;
    text-align: left !important;
    max-width: 100%;
    z-index: 10;
    position: relative;
}




/* Ensure correct layout for LTR languages */
.home-hero .row {
    direction: ltr;
}

/* For RTL languages (Arabic) */
[dir="rtl"] .home-hero .carousel-caption {
    text-align: right !important;
}

/* Scroll Animation Styles */
[data-scroll-fade] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll-fade].animated {
    opacity: 1;
}

[data-scroll-slide] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

[data-scroll-slide].animated {
    opacity: 1;
}

.home-hero #heroCarousel {
    position: relative;
    z-index: 10;
}

/* Hero Text Styles - Enhanced for visibility */
.home-hero h1 {
    font-size: clamp(2.6rem, 4vw, 3.7rem);
    font-weight: 700;
    color: #FFFFFF !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.home-hero p {
    font-size: 1.15rem;
    color: #FFFFFF !important;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
    opacity: 0.95;
}

.home-section {
    padding: clamp(4rem, 6vw, 6rem) 0;
    position: relative;
}

.brand-gradient {
    background: linear-gradient(135deg,
            rgba(156, 127, 249, 0.14) 0%,
            rgba(80, 89, 199, 0.18) 45%,
            rgba(113, 167, 174, 0.18) 100%);
    border-top: 1px solid rgba(156, 127, 249, 0.12);
    border-bottom: 1px solid rgba(113, 167, 174, 0.12);
    overflow: hidden;
}

.brand-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(156, 127, 249, 0.12), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(80, 89, 199, 0.1), transparent 30%),
        radial-gradient(circle at 50% 85%, rgba(113, 167, 174, 0.12), transparent 32%);
    pointer-events: none;
    z-index: 0;
}

.home-section+.home-section {
    margin-top: clamp(4rem, 6vw, 6rem);
}

.home-section:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 255, 0.55), transparent);
    border-radius: 999px;
}

.home-section .section-title {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-title span {
    text-transform: uppercase;
    letter-spacing: 0.25rem;
    font-size: 0.85rem;
    color: var(--brand-teal);
}

.section-title h2 {
    color: #FFFFFF;
    margin: 1rem 0;
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.65rem);
}

.section-title p {
    color: #C7D2FE;
    max-width: 620px;
}

.glass-card,
.services-grid .service-card,
.partner-card {
    background: linear-gradient(145deg, rgba(18, 16, 52, 0.78), rgba(18, 22, 72, 0.82));
    border: 1px solid rgba(156, 127, 249, 0.25);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 45px rgba(80, 89, 199, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Hero Glass Card - Enhanced visibility */
.home-hero .glass-card {
    background: rgba(10, 10, 26, 0.8) !important;
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(0, 206, 209, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 206, 209, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.home-hero .glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 206, 209, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(0, 206, 209, 0.6) !important;
}

.home-hero .glass-card .text-white {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.home-hero .glass-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.home-hero .glass-card .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Services Section - Images */
.services-grid .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-image-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    height: 220px;
    background: rgba(30, 27, 75, 0.3);
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 16px;
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.1);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(156, 127, 249, 0.25) 0%,
            rgba(80, 89, 199, 0.28) 50%,
            rgba(113, 167, 174, 0.25) 100%);
    color: #ffffff;
    border-radius: 16px;
}

.service-image-placeholder i {
    opacity: 0.8;
}

.service-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-content h5 {
    margin-bottom: 1rem;
}

.service-card-content h5 a {
    color: #FFFFFF !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card-content h5 a:hover {
    color: #0A84FF !important;
}

.service-description {
    color: #C7D2FE;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.services-grid .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(80, 89, 199, 0.35);
    border-color: rgba(113, 167, 174, 0.45);
}

.services-grid .service-card h5 a {
    color: #FFFFFF;
    text-decoration: none;
}

.services-grid .service-card p,
.partner-card .partner-card-description {
    color: #C7D2FE;
}

.btn-ghost {
    color: #FFFFFF;
    border: 1px solid rgba(148, 163, 255, 0.35);
    background: rgba(148, 163, 255, 0.12);
}

.btn-ghost:hover {
    background: rgba(148, 163, 255, 0.22);
    color: #FFFFFF;
}

.icon-bubble {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(156, 127, 249, 0.25), rgba(80, 89, 199, 0.3));
    border-radius: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(80, 89, 199, 0.35);
}

.icon-bubble.alternate {
    background: linear-gradient(135deg, rgba(113, 167, 174, 0.28), rgba(80, 89, 199, 0.28));
    color: #ffffff;
}

/* About Section */
.about-section {
    padding: clamp(5rem, 8vw, 8rem) 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}


.about-section .section-title h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.about-section .section-title .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #C7D2FE;
    max-width: 800px;
}

.about-card {
    background: linear-gradient(145deg, rgba(156, 127, 249, 0.16), rgba(80, 89, 199, 0.12), rgba(113, 167, 174, 0.14));
    border-radius: 20px;
    border: 1px solid rgba(156, 127, 249, 0.25);
    color: #E0E7FF;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(80, 89, 199, 0.35);
    border-color: rgba(113, 167, 174, 0.5);
}

.about-card .icon-bubble {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.about-card p {
    color: #C7D2FE;
    line-height: 1.8;
    font-size: 1rem;
}

.hero-badge {
    background: rgba(0, 206, 209, 0.3) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(0, 206, 209, 0.5);
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.4);
    position: relative;
    z-index: 10;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}

.progress-custom {
    height: 8px;
    background: rgba(148, 163, 255, 0.2);
}

.progress-bar-custom-blue {
    background-color: #0A84FF;
}

.progress-bar-custom-purple {
    background-color: #4F46E5;
}

.partner-card {
    padding: 2.25rem;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 60px rgba(79, 70, 229, 0.35);
}

.partner-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border-radius: 18px;
    background: rgba(15, 12, 51, 0.6);
    border: 1px solid rgba(148, 163, 255, 0.25);
}

.partner-card-logo img {
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(10, 132, 255, 0.2));
}

/* Partnerships: Logo Slider - Clean (no boxes, no side overlays) */
.partner-logos-slider {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}

/* Removed side edge overlays */

/* Track: slowed for a more pleasant experience */
.partner-logos-slider .logos-track {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 4vw, 3rem);
    width: max-content;
    animation: logosScroll 40s linear infinite;
    will-change: transform;
}

.partner-logos-slider:hover .logos-track {
    animation-play-state: paused;
}

@keyframes logosScroll {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-50%);
    }
}

/* RTL support: reverse animation direction */
[dir="rtl"] .partner-logos-slider .logos-track {
    animation-name: logosScrollRtl;
}

@keyframes logosScrollRtl {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0%);
    }
}

/* Logo item: image-only (no background, no border, no fixed square) */
.partner-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    min-width: 0;
    height: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.partner-logo-item img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo-item:hover img {
    opacity: 1;
    transform: scale(1.04);
}

/* Fallback if there is no logo: tiny rounded initial (still clean) */
.partner-logo-item .logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(10, 132, 255, 0.15);
    color: #0A84FF;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive sizes */
@media (max-width: 991px) {
    .partner-logo-item img {
        max-height: 42px;
    }
}

@media (max-width: 575px) {
    .partner-logo-item img {
        max-height: 36px;
    }
}

.partner-card-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(10, 132, 255, 0.18);
    color: #0A84FF;
    font-size: 1.75rem;
}

.partner-card-body {
    gap: 0.75rem;
}

.partner-card-meta .partner-name {
    font-weight: 600;
    font-size: 1.15rem;
    color: #FFFFFF;
}

.partner-card-description {
    color: #C7D2FE;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.partner-card .btn-outline-light {
    border-radius: 999px;
    border-width: 1px;
    padding-inline: 1.5rem;
    backdrop-filter: blur(6px);
}

.partner-card .btn-outline-light:hover {
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.25);
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 991px) {
    .service-image-wrapper {
        height: 200px;
    }

    .about-card {
        padding: 2rem 1.5rem;
    }

    .about-card .icon-bubble {
        width: 70px;
        height: 70px;
    }

    /* Reduce particles and shapes on tablet */
    .particle {
        width: 3px;
        height: 3px;
    }

    .shape {
        opacity: 0.2;
    }

    .neural-network {
        opacity: 0.25;
    }

    .wave-container {
        height: 150px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        min-height: auto;
        padding-top: 80px;
        /* Space for fixed header */
        margin-bottom: 3rem;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .home-hero .carousel-caption {
        text-align: center !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .home-hero .carousel-item {
        min-height: 75vh;
    }

    .service-image-wrapper {
        height: 180px;
    }

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

    .about-card {
        padding: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.25rem;
    }

    .about-card .icon-bubble {
        width: 60px;
        height: 60px;
    }

    /* Reduce animations on mobile for performance */
    .particle {
        width: 2px;
        height: 2px;
        opacity: 0.5;
    }

    .particles-container {
        opacity: 0.6;
    }

    .shape {
        opacity: 0.15;
        transform: scale(0.8);
    }

    .floating-shapes {
        opacity: 0.7;
    }

    .neural-network {
        opacity: 0.2;
    }

    .circuit-pattern {
        opacity: 0.1;
    }

    .wave-container {
        height: 100px;
    }

    .wave {
        opacity: 0.1;
    }

    /* Ensure text readability on mobile */
    .home-hero h1 {
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.15);
    }

    .home-hero p {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .hero-overlay {
        background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 26, 0.8) 60%, rgba(10, 10, 26, 0.95) 100%);
    }
}

@media (max-width: 767px) {

    /* Fix Bootstrap carousel arrows overflow */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
        top: 50%;
        transform: translateY(-50%);
    }

    .carousel-control-prev {
        left: 10px !important;
    }

    .carousel-control-next {
        right: 10px !important;
    }
}




.carousel-caption {
    position: static !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

@media (max-width: 767px) {
    #heroCarousel .carousel-item {
        overflow: hidden !important;
    }

    .carousel-caption {
        text-align: center !important;
    }
}

/* Reduce hero text size on mobile */
@media (max-width: 767px) {
    #heroCarousel h1 {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    #heroCarousel p {
        font-size: 14px !important;
        line-height: 22px !important;
    }

    #heroCarousel .hero-badge {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    .carousel-caption {
        padding: 10px 0 !important;
    }
}

/* Performance optimization - reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .hero-gradient,
    .particle,
    .shape,
    .network-line,
    .network-node,
    .wave {
        animation: none !important;
    }

    .neural-network {
        opacity: 0.2;
    }

    .particles-container {
        opacity: 0.5;
    }
}