:root {
    /* Updated palette: gray-purple mix (matches logo tones) */
    --primary-color: #6b5b95; /* warm purple-gray */
    --primary-dark: #3f3358; /* deep purple-gray */
    --primary-light: #a78bfa; /* soft lavender highlight */
    --secondary-color: #8b8792; /* muted gray-purple */
    --accent-color: #7c3aed; /* vivid purple accent */
    --dark-bg: #0f1116; /* slightly darker for contrast */
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--text-white);
}

/* Top Bar */
.top-bar {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-info span,
.top-bar-social span {
    margin-right: 15px;
}

.top-bar-social .social-icon {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 10px;
    transition: color 0.3s;
}

.top-bar-social .social-icon:hover {
    color: var(--primary-light);
}

/* RTL adjustments for Top Bar */
[dir="rtl"] .top-bar .row {
    /* reverse the columns on larger screens so info appears on the right */
    flex-direction: row-reverse;
}

[dir="rtl"] .top-bar-info,
[dir="rtl"] .top-bar-social {
    /* ensure text aligns naturally for RTL */
    text-align: right;
}

[dir="rtl"] .top-bar-info span,
[dir="rtl"] .top-bar-social span {
    /* swap inline spacing for RTL */
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .top-bar-social .social-icon {
    /* flip social icon spacing */
    margin-left: 0;
    margin-right: 10px;
}

@media (max-width: 767px) {
    /* On small screens keep centered layout for RTL as well */
    [dir="rtl"] .top-bar { text-align: center; }
    [dir="rtl"] .top-bar-social { margin-top: .5rem; text-align: center; }
}

/* Fix text alignment utility inside top-bar for RTL (flip text-md-end behavior) */
[dir="rtl"] .top-bar .text-md-end {
    text-align: left !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.05), transparent);
    animation: navbar-shine 8s infinite;
}

@keyframes navbar-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

/* Techy visual enhancements */
@keyframes tech-flicker {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    10% { opacity: 0.92; transform: translateY(-1px) scale(1.002); }
    20% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 1; }
}

@keyframes tech-pulse {
    0% { box-shadow: 0 0 0 rgba(167,139,250,0); }
    50% { box-shadow: 0 0 28px rgba(167,139,250,0.12); }
    100% { box-shadow: 0 0 0 rgba(167,139,250,0); }
}

@keyframes tech-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.tech-glow {
    box-shadow: 0 6px 28px rgba(124,58,237,0.08), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: box-shadow 300ms ease;
}

.tech-flicker {
    animation: tech-flicker 3s linear infinite;
}

.tech-pulse {
    animation: tech-pulse 900ms ease-in-out;
}

.tech-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(167,139,250,0.08) 45%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: tech-shimmer 2.8s linear infinite;
    pointer-events: none;
}

/* apply subtle shimmer to navbar shine to match new palette */
.navbar::before {
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.06), transparent);
}

/* logo cards and images: subtle purple-gray glow on hover/focus */
.logo-slide-inner:hover, .logo-slide-inner:focus-within {
    box-shadow: 0 18px 46px rgba(63,51,88,0.08);
    transform: translateY(-6px);
}

.logo-slide-inner img {
    transition: filter 240ms, opacity 240ms, transform 240ms, box-shadow 240ms;
}

.logo-slide-inner img.tech-spark {
    filter: drop-shadow(0 6px 18px rgba(124,58,237,0.08));
}

/* hero shapes get a slow float + glow */
.hero-shapes .shape {
    filter: drop-shadow(0 18px 60px rgba(99,102,241,0.06));
}

/* small tech particle flickers */
.tech-particle {
    width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); opacity: 0.7;
    box-shadow: 0 4px 12px rgba(167,139,250,0.12);
    animation: tech-flicker 2.5s linear infinite;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(109, 40, 217, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

.navbar-brand:hover::after {
    opacity: 1;
}

.navbar-brand .brand-logo-img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1);
    position: relative;
    z-index: 10;
}

.navbar-brand .brand-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 24px rgba(109, 40, 217, 0.3));
    }
    50% {
        filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 32px rgba(109, 40, 217, 0.5));
    }
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.navbar-brand .brand-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 50%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

/* Brand text animation for the 'Technology' word beside the logo */
.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    vertical-align: middle;
    transition: color 300ms ease, transform 300ms ease;
}

.navbar-brand .brand-tech {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light), var(--accent-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tech-text-shimmer 3.5s linear infinite;
    will-change: transform, opacity;
}

@keyframes tech-text-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes brand-text-pop {
    0% { transform: translateY(8px) scale(0.98); opacity: 0; }
    60% { transform: translateY(-2px) scale(1.03); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Entrance pop + shimmer when brand-wrap triggers animation */
.brand-animate .brand-tech {
    animation: tech-text-shimmer 3.5s linear infinite, brand-text-pop 700ms cubic-bezier(.2,.9,.28,1) both;
}

/* Pause shimmer on hover/focus to reduce motion during interaction */
.navbar-brand:hover .brand-tech,
.navbar-brand:focus-within .brand-tech {
    animation-play-state: paused;
    transform: translateY(-2px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .navbar-brand .brand-tech,
    .brand-animate .brand-tech {
        animation: none !important;
        -webkit-animation: none !important;
    }
}

.navbar-nav .nav-link {
    color: #1f2937;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.navbar-nav .nav-link:hover::before {
    width: 120%;
    height: 200%;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6d28d9, #8b5cf6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #6d28d9;
}

.navbar-toggler {
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(109, 40, 217, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-primary-custom {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
    color: var(--text-white);
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.4);
    color: var(--text-white);
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--text-white);
    padding: 120px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(30, 64, 175, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(30px) rotate(-5deg);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradient-shift 3s ease-in-out infinite, glow-pulse 3s ease-in-out infinite;
    background-size: 200% auto;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.btn-outline-light-custom {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light-custom:hover {
    background: var(--text-white);
    color: var(--primary-color);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    font-size: 1.25rem;
    color: var(--success-color);
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.floating-card .info h4 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.floating-card .info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 1.5s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--text-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator a:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Client Logo Slider Section (refined for a more elegant appearance) */
.clients-slider-section {
    /* subtle soft gradient to feel premium */
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.clients-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

.slider-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 65%);
    animation: float-shape 25s ease-in-out infinite;
}

.slider-shape-1 { width: 360px; height: 360px; top: -80px; left: -80px; }
.slider-shape-2 { width: 280px; height: 280px; top: 45%; right: -40px; }
.slider-shape-3 { width: 220px; height: 220px; bottom: -40px; left: 30%; }

@keyframes float-shape { 0%,100%{transform:translate(0,0)}33%{transform:translate(18px,-18px)}66%{transform:translate(-12px,12px)} }

.slider-title {
    color: #0b1220;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.slider-subtitle { color: #6b7280; font-size: 1rem; margin-bottom: 0; }

.logo-slider { position: relative; width: 100%; overflow: hidden; padding: 2.25rem 0; z-index: 1; }

.logo-slider::before, .logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.logo-slider::after { right: 0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }

.logo-track { display: flex; width: fit-content; gap: 2.5rem; align-items: center; transform: translateX(0); }

.logo-track[data-direction="ltr"] { animation: scroll-ltr 48s linear infinite; }
.logo-track[data-direction="rtl"] { animation: scroll-rtl 48s linear infinite; }
.logo-track.paused { animation-play-state: paused !important; }

.logo-slide { flex-shrink: 0; }

.logo-slide-inner {
    display: flex; align-items: center; justify-content: center;
    padding: 1rem 1.5rem; background: #ffffff; border-radius: 12px; min-width: 180px; height: 110px;
    box-shadow: 0 6px 22px rgba(12, 18, 31, 0.06); transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms;
    border: 1px solid rgba(15,23,42,0.04);
}

.logo-slide-inner:focus-within, .logo-slide-inner:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12,18,31,0.08); }

.logo-slide-inner img {
    max-width: 150px; max-height: 68px; width: auto; height: auto; object-fit: contain;
    filter: grayscale(100%) contrast(0.9) brightness(0.85); opacity: 0.75; transition: filter 240ms, opacity 240ms, transform 240ms;
}

.logo-slide-inner:hover img, .logo-slide-inner:focus img { filter: none; opacity: 1; transform: scale(1.03); }

/* keep a steady subtle presence */
@keyframes logo-flicker { 0%,100%{opacity:0.8} }

/* Clients Stats */
.clients-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes scroll-ltr {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes logo-flicker {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

/* RTL Support for Slider */
[dir="rtl"] .logo-track[data-direction="ltr"] {
    /* Use the same LTR keyframes but play them in reverse so the track starts visible
       and scrolls in the opposite direction. This avoids an initial off-screen snap. */
    animation: scroll-ltr 48s linear infinite reverse;
}

[dir="rtl"] .logo-slider::before {
    left: auto;
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

[dir="rtl"] .logo-slider::after {
    right: auto;
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-title {
        font-size: 1.75rem;
    }

    .clients-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-divider {
        height: 50px;
    }

    .logo-slide-inner {
        min-width: 140px;
        height: 80px;
        padding: 1rem 1.5rem;
    }

    .logo-slide-inner img {
        max-width: 100px;
        max-height: 50px;
    }
}

/* Section Common */
.section-badge {
    display: inline-block;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-badge-light {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    color: #6d28d9;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

.service-card-premium {
    background: var(--text-white);
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card-premium:hover::before {
    transform: scaleX(1);
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-card-premium.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(30, 64, 175, 0.1);
    line-height: 1;
    margin-bottom: 1rem;
}

.service-icon-premium {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card-premium:hover .service-icon-premium {
    transform: scale(1.1) rotate(5deg);
}

.service-card-premium h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card-premium p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li i {
    color: var(--success-color);
    font-size: 1.125rem;
}

.service-link-premium {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link-premium:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* Solutions Section */
.solutions-section {
    padding: 6rem 0;
    background: var(--text-white);
}

.solution-card-premium {
    background: var(--text-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
}

.solution-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.solution-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.solution-card-premium:hover .solution-image img {
    transform: scale(1.15);
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.solution-card-premium:hover .solution-overlay {
    opacity: 1;
}

.solution-content {
    padding: 2rem;
}

.solution-badge {
    display: inline-block;
    background: rgba(30, 64, 175, 0.1);
    color: var(--primary-color);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.solution-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.solution-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-mini {
    text-align: center;
}

.stat-mini strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-mini span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Industries Section */
.industries-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

.industry-card {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.industry-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.industry-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.industry-card:hover .industry-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    transform: scale(1.1);
}

.industry-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.industry-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
    background: var(--text-white);
}

.portfolio-card {
    background: var(--text-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.15);
}

.portfolio-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.portfolio-category {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.portfolio-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.portfolio-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.testimonial-rating {
    color: var(--warning-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h5 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Clients Section */
.clients-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.client-logo {
    padding: 1.5rem;
    background: var(--text-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.certifications {
    margin-top: 3rem;
}

.certifications h4 {
    color: var(--text-dark);
    font-weight: 700;
}

.cert-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cert-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--text-white);
}

.about-image-wrapper {
    position: relative;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-content h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.badge-content p {
    margin: 0;
    font-size: 0.95rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.highlight-item h5 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.highlight-item p {
    color: var(--text-light);
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.cta-features i {
    color: var(--success-color);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--light-bg);
}

.contact-info-premium {
    background: var(--text-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.office-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.office-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.office-item h5 {
    color: var(--primary-color);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.office-item p {
    color: var(--text-light);
    margin: 0.5rem 0;
    line-height: 1.6;
}

.social-links-contact {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-links-contact a {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form-premium {
    background: var(--text-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-form-premium .form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form-premium .form-control,
.contact-form-premium .form-select {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-premium .form-control:focus,
.contact-form-premium .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-form-premium textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-offices {
    list-style: none;
    padding: 0;
}

.footer-offices li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

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

    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        padding: 1.5rem;
        margin-top: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(139, 92, 246, 0.2);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(139, 92, 246, 0.1);
    }

    .btn-language-toggle,
    .btn-primary-custom {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .top-bar {
        text-align: center;
    }

    .top-bar-social {
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .service-card-premium,
    .contact-form-premium,
    .contact-info-premium {
        padding: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* Language Toggle Button */
.btn-language-toggle {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #6d28d9;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-language-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn-language-toggle:hover::before {
    width: 200%;
    height: 200%;
}

.btn-language-toggle:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.btn-language-toggle i {
    font-size: 1.125rem;
    position: relative;
    z-index: 1;
}

.btn-language-toggle .lang-text {
    position: relative;
    z-index: 1;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .hero-buttons .me-3,
[dir="rtl"] .btn .me-2 {
    margin-right: 0 !important;
    margin-left: 0.75rem !important;
}

[dir="rtl"] .ms-lg-2,
[dir="rtl"] .ms-lg-3,
[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

[dir="rtl"] .text-md-end {
    text-align: right !important;
}

/* Tech Particles */
.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tech-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(-20px, -20px) scale(1.05);
    }
}

.tech-connections {
    opacity: 0.3;
}

.tech-line {
    animation: pulse-line 2s infinite ease-in-out;
}

@keyframes pulse-line {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
}

/* Tech Grid Background */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    opacity: 0.3;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Digital Rain Effect */
.digital-rain {
    position: absolute;
    top: -20px;
    color: rgba(59, 130, 246, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    animation: rain-fall linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rain-fall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Glowing Text Effect */
@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 30px rgba(109, 40, 217, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.9)) drop-shadow(0 0 50px rgba(109, 40, 217, 0.6));
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Button Flicker Effect */
.btn-primary-custom {
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Logo Flicker Animation */
.brand-logo {
    position: relative;
    transition: all 0.1s ease;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: logo-flicker 5s infinite;
}

@keyframes logo-flicker {
    0%, 100% {
        opacity: 0;
    }
    2%, 4% {
        opacity: 0.3;
    }
    3% {
        opacity: 0;
    }
}

/* Navbar Tech Effects */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    animation: scan-line 4s infinite;
}

@keyframes scan-line {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Data flow dots on navbar */
.navbar .container {
    position: relative;
}

.navbar .container::before,
.navbar .container::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #8b5cf6;
    border-radius: 50%;
    opacity: 0;
    animation: data-flow 8s infinite;
    box-shadow: 0 0 10px #8b5cf6;
}

.navbar .container::before {
    left: 0;
    animation-delay: 0s;
}

.navbar .container::after {
    right: 0;
    animation-delay: 4s;
}

@keyframes data-flow {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
}

/* Navbar micro flickers */
.navbar-nav .nav-link {
    animation: micro-flicker 10s infinite;
}

.navbar-nav .nav-link:nth-child(1) { animation-delay: 0s; }
.navbar-nav .nav-link:nth-child(2) { animation-delay: 2s; }
.navbar-nav .nav-link:nth-child(3) { animation-delay: 4s; }
.navbar-nav .nav-link:nth-child(4) { animation-delay: 6s; }
.navbar-nav .nav-link:nth-child(5) { animation-delay: 8s; }

@keyframes micro-flicker {
    0%, 98%, 100% {
        opacity: 1;
    }
    98.5% {
        opacity: 0.8;
    }
    99% {
        opacity: 1;
    }
    99.5% {
        opacity: 0.9;
    }
}

/* Navbar brand: keep minimal — remove decorative border/background so logo stands alone */
.navbar-brand:hover { transform: translateY(-2px); }
.navbar-brand::after { display: none; }

/* Brand logo image: elegant, borderless, with subtle purple-gray glow on hover */
.brand-logo-img {
    height: 44px;
    width: auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: transform 260ms ease, filter 260ms ease, opacity 260ms ease;
    will-change: transform;
    display: inline-block;
    object-fit: contain;
}

.brand-logo-img:hover, .brand-logo-img:focus {
    transform: scale(1.04);
    filter: drop-shadow(0 10px 30px rgba(124,58,237,0.12));
    opacity: 0.98;
}

/* Ensure navbar spacing accommodates the new logo size */
.navbar .brand-logo-img { margin-right: 6px; }

/* Brand wrap: shimmer + pulse badge to make logo more eye-catching */
.brand-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.brand-wrap::after {
    /* small pulsing badge */
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 6px 18px rgba(124,58,237,0.2), 0 2px 6px rgba(124,58,237,0.12);
    transform: scale(1);
    opacity: 0.95;
    animation: brand-badge-pulse 2.6s infinite ease-in-out;
}

@keyframes brand-badge-pulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.9; }
}

.brand-wrap::before {
    /* subtle shimmer sweep across the logo */
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-15deg);
    filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    animation: brand-shimmer 3.2s ease-in-out infinite;
}

@keyframes brand-shimmer {
    0% { left: -60%; opacity: 0; }
    30% { opacity: 0.6; }
    60% { left: 120%; opacity: 0.6; }
    100% { left: 120%; opacity: 0; }
}

/* entrance animation for brand */
.brand-animate .brand-logo-img {
    animation: brand-entrance 900ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes brand-entrance {
    from { transform: translateY(-6px) scale(.98); opacity: 0; filter: blur(2px); }
    to { transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}

/* Brand text next to logo (visible on md+). Keeps layout compact on mobile. */
.brand-text {
    display: none;
    margin-left: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    align-self: center;
}

@media (min-width: 768px) {
    .brand-text { display: inline-block; }
    .brand-logo-img { height: 48px; }
}

@media (max-width: 767px) {
    /* Hide pulsing badge and shimmer on small screens to reduce clutter */
    .brand-wrap::after, .brand-wrap::before { display: none; }
    .brand-text { display: none; }
    .brand-logo-img { height: 42px; }
}

/* keyboard focus visible state for accessibility */
.navbar-brand:focus-visible .brand-wrap {
    outline: 3px solid rgba(167,139,250,0.18);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .brand-wrap::before,
    .brand-wrap::after,
    .brand-animate .brand-logo-img,
    .tech-flicker,
    .tech-pulse,
    .tech-shimmer,
    .logo-track { animation: none !important; transition: none !important; }
}

/* Pixel grid pattern on navbar */
.navbar .container {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 92, 246, 0.02) 2px, rgba(139, 92, 246, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 92, 246, 0.02) 2px, rgba(139, 92, 246, 0.02) 4px);
}

/* ===== Services Tabs ===== */
.services-tabs-wrapper {
    text-align: center;
    margin-bottom: 3rem;
}

.services-tabs {
    display: inline-flex;
    background: var(--text-white);
    border-radius: 16px;
    padding: 6px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    gap: 4px;
}

.services-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}

.services-tab i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.services-tab:hover {
    color: var(--primary-color);
    background: rgba(107, 91, 149, 0.06);
}

.services-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 4px 16px rgba(107, 91, 149, 0.35);
}

.services-tab.active i {
    transform: scale(1.15);
}

.services-tab-content {
    display: none;
    animation: tabFadeIn 0.45s ease forwards;
}

.services-tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Tab Intro */
.tab-intro {
    margin-bottom: 1rem;
}

.tab-intro-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.tab-intro-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.tab-intro-stat .stat-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 8px 32px rgba(107, 91, 149, 0.3);
}

.tab-intro-stat .stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.tab-intro-stat .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* RTL adjustments for tabs */
[dir="rtl"] .services-tabs {
    flex-direction: row-reverse;
}

[dir="rtl"] .services-tab {
    flex-direction: row-reverse;
}

/* Mobile tabs */
@media (max-width: 767px) {
    .services-tabs {
        flex-direction: column;
        width: 100%;
    }

    .services-tab {
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .tab-intro-title {
        font-size: 1.35rem;
    }

    .tab-intro-stat .stat-circle {
        width: 110px;
        height: 110px;
        margin-top: 1.5rem;
    }

    .tab-intro-stat .stat-number {
        font-size: 1.5rem;
    }
}

/* Mobile Adjustments for Animations */
@media (max-width: 767px) {
    .tech-particles {
        display: none;
    }

    .digital-rain {
        display: none;
    }

    .tech-grid {
        opacity: 0.1;
    }

    .navbar::before {
        display: none;
    }

    .navbar .container::before,
    .navbar .container::after {
        display: none;
    }
}
