body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(21, 101, 192, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(23, 178, 217, 0.08), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.site-logo {
    height: 92px;
    width: auto;
    display: block;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.navbar .nav-link {
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #1565c0 !important;
}

section {
    position: relative;
}

section h1,
section h2,
section h3 {
    color: #111827;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(2px);
}

.bg-primary {
    background-color: #1565c0 !important;
}

.text-primary {
    color: #1565c0 !important;
}

.btn-primary {
    background-color: #1565c0;
    border-color: #1565c0;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0f4fa0;
    border-color: #0f4fa0;
}

.card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.card.shadow-sm {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card.shadow-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

footer h3,
footer h4 {
    color: #ffffff;
}

footer p,
footer a,
footer li {
    color: #d1d5db !important;
}

footer a:hover {
    text-decoration: underline !important;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(209, 213, 219, 0.35);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social-link:hover,
.social-link:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(209, 213, 219, 0.7);
    text-decoration: none !important;
}

.social-link svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.social-link span {
    font-size: 1rem;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.12), rgba(143, 211, 255, 0.28));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(21, 101, 192, 0.08);
}

/* Client logos */
.client-logo-wrap {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 10px;
    overflow: hidden;
}

.client-logo {
    max-height: 90px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.client-logo-small {
    max-height: 70px !important;
    max-width: 170px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

.client-slider {
    overflow: hidden;
    position: relative;
    padding: 0.25rem 0;
}

.client-slider::before,
.client-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 2;
    pointer-events: none;
}

.client-slider::before {
    left: 0;
    background: linear-gradient(90deg, #eef4fb 0%, rgba(238, 244, 251, 0) 100%);
}

.client-slider::after {
    right: 0;
    background: linear-gradient(270deg, #eef4fb 0%, rgba(238, 244, 251, 0) 100%);
}

.client-slider-track {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    width: max-content;
    animation: client-logo-scroll 36s linear infinite;
}

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

.client-slide {
    flex: 0 0 260px;
    min-height: 118px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

@keyframes client-logo-scroll {
    from {
        transform: translateX(0);
    }

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

/* Hero slider */
.hero-slider .carousel-item {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
}

.hero-slider .carousel-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    bottom: auto;
    transform: translateY(-50%);
    text-align: left;
    z-index: 2;
}

.hero-slider .carousel-caption h1,
.hero-slider .carousel-caption h2 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-slider .carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.hero-slider .carousel-caption .slider-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8fd3ff;
    margin-bottom: 1rem;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 6%;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Optional subtle tech grid on hero */
.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Client strip / simple logo boxes */
.logo-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.logo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* Form improvements */
.form-control,
.form-select {
    border-radius: 10px;
    border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 0.2rem rgba(21, 101, 192, 0.15);
}

/* CTA blocks */
.cta-block {
    background: linear-gradient(135deg, #1565c0 0%, #0f4fa0 100%);
    color: #ffffff;
    border-radius: 1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .site-logo {
        height: 64px;
    }

    .navbar-brand {
        max-width: 75%;
    }

    .client-logo-wrap {
        height: 95px;
    }

    .client-logo {
        max-height: 75px !important;
        max-width: 170px !important;
    }

    .client-slide {
        flex-basis: 220px;
    }

    .hero-slider .carousel-item {
        min-height: 430px;
    }

    .hero-slider .carousel-caption {
        left: 7%;
        right: 7%;
    }

    .hero-slider .carousel-caption h1,
    .hero-slider .carousel-caption h2 {
        font-size: 2rem;
    }

    .hero-slider .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 54px;
    }

    .hero-slider .carousel-item {
        min-height: 380px;
    }

    .hero-slider .carousel-caption h1,
    .hero-slider .carousel-caption h2 {
        font-size: 1.6rem;
    }

    .hero-slider .carousel-caption p {
        font-size: 0.95rem;
    }

    .client-slider::before,
    .client-slider::after {
        width: 32px;
    }

    .client-slider-track {
        gap: 0.85rem;
        animation-duration: 30s;
    }

    .client-slide {
        flex-basis: 190px;
        min-height: 104px;
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-slider {
        overflow-x: auto;
    }

    .client-slider-track {
        animation: none;
    }
}

.page-hero-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
    display: block;
}

@media (max-width: 991.98px) {
    .page-hero-image {
        height: 260px;
        margin-top: 1rem;
    }
}
