/* Frontend common styles — true one-offs not cleanly expressible as Tailwind utilities */

html {
    scroll-behavior: smooth;
}

/* Company logo — assets/images/new-logo.png is a 2000x2000 canvas whose artwork fills only the
   central ~66% x 52% (transparent margins all round). --logo-h is the height of the VISIBLE
   artwork: the canvas is sized from it (aspect ratio untouched) and the transparent margins are
   pulled out of the layout, so the logo takes only the space it actually paints. */
.company-logo {
    --logo-h: 3rem;
    --logo-canvas: calc(var(--logo-h) / 0.52);
    display: block;
    flex: none;
    width: var(--logo-canvas);
    height: var(--logo-canvas);
    max-width: none;
    margin: calc(var(--logo-canvas) * -0.24) calc(var(--logo-canvas) * -0.171);
    object-fit: contain;
    pointer-events: none;
}
.company-logo--header { --logo-h: 3.5rem; }
.company-logo--footer { --logo-h: 4rem; }
/* Variant per background: logowhite.png on dark, new-logo.png on light — chosen by logo_img() in includes/functions.php */

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.h-18 { height: 4.5rem; }

/* Custom animated cursor — site-wide (desktop, fine-pointer only). */
.hp-has-cursor,
.hp-has-cursor a,
.hp-has-cursor button {
    cursor: none;
}
.hp-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #ff8a50;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.25s ease;
    animation: hpCursorPulse 1.8s ease-in-out infinite;
}
.hp-cursor::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 138, 80, 0.7);
    animation: hpCursorPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hp-cursor.is-active {
    background: #ffffff;
    transform-origin: center;
}
.hp-cursor.is-active::after {
    border-color: rgba(255, 255, 255, 0.85);
}
@keyframes hpCursorPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 138, 80, 0.5); }
    50%      { box-shadow: 0 0 0 4px rgba(255, 138, 80, 0); }
}
@keyframes hpCursorPing {
    0%   { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-cursor, .hp-cursor::after { animation: none; }
}

/* Hero background gradient + soft blob decoration */
.hero-gradient {
    background: radial-gradient(circle at 15% 20%, rgba(67, 144, 187, 0.16), transparent 45%),
                radial-gradient(circle at 85% 15%, rgba(1, 87, 155, 0.22), transparent 40%),
                #020617;
}

.hero-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
}
.hero-blob-dim {
    opacity: 0.25;
}

/* Card hover lift */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
}

.home-section-kicker {
    letter-spacing: 0.08em;
}

/* Icon badge hover effect (product/service icon tiles) */
.hover-lift:hover [class*="bi-"] {
    transform: scale(1.12);
}
[class*="bi-"] {
    transition: transform 0.2s ease;
    display: inline-block;
}

/* Floating illustration animation */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.float-animation {
    animation: floatY 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .float-animation { animation: none; }
}

/* Button ripple effect (ripple span injected by common.js on click) */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(2.8); opacity: 0; }
}

/* Testimonial / logo marquee-style scroller (simple, CSS-driven) */
.stat-counter {
    font-variant-numeric: tabular-nums;
}

/* Reusable horizontal card slider (native scroll-snap based) */
.card-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
}
.card-slider::-webkit-scrollbar {
    display: none;
}
.card-slider > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
}
.card-slider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.card-slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.card-slider-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background-color: #334155;
    transition: width 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.card-slider-dot.is-active {
    width: 1.8rem;
    background-color: #01579B;
    transform: translateY(-1px);
}

/* Footer */
.footer-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.footer-heading span {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffb077;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-link {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link i {
    font-size: 0.7rem;
    color: #ffffff;
}
.footer-link:hover {
    color: #ffb077;
    transform: translateX(4px);
}
.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social-link:hover {
    background: #e65100;
    color: #ffffff;
    transform: translateY(-2px);
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-contact-item span {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.footer-contact-item i {
    flex-shrink: 0;
    color: #ffb077;
    margin-top: 0.1rem;
}

/* Custom thin scrollbar for mobile menu */
#mobileMenu::-webkit-scrollbar {
    width: 4px;
}
#mobileMenu::-webkit-scrollbar-thumb {
    background-color: rgba(15, 111, 130, 0.3);
    border-radius: 999px;
}

/* Rich content areas (About Us, product/service descriptions) rendered from admin HTML */
.prose-content p { margin-bottom: 1rem; line-height: 1.75; }
.prose-content strong { font-weight: 600; color: #6fb0de; }

/* FAQ accordion (native <details>/<summary> — accessible, no JS required) */
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary {
    list-style: none;
}
.faq-item__chevron {
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-item__chevron {
    transform: rotate(180deg);
}

/* Talent profile flip cards (role-based tiers — deliberately not named/photographed
   individuals, see pages/hire-developer.php) */
.talent-card {
    perspective: 1600px;
    height: 21rem;
}
.talent-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}
.talent-card:hover .talent-card__inner,
.talent-card:focus-within .talent-card__inner {
    transform: rotateY(180deg);
}
.talent-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1rem;
}
.talent-card__back {
    transform: rotateY(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .talent-card__inner { transition: none; }
}

/* Technologies We Serve — orbiting tech badges around a center logo.
   Each ring's stage spins one direction; each badge label runs the OPPOSITE
   keyframe animation (not the same one with animation-direction:reverse,
   which does not cancel cleanly) so labels stay upright while orbiting. */
.tech-orbit {
    position: relative;
    width: 100%;
    max-width: 660px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
.tech-orbit__ring {
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
.tech-orbit__ring--1 { inset: 34%; }
.tech-orbit__ring--2 { inset: 18.5%; }
.tech-orbit__ring--3 { inset: 3%; }
.tech-orbit__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 10px rgba(1, 87, 155, 0.08), 0 0 40px rgba(1, 87, 155, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.tech-orbit__stage {
    position: absolute;
    inset: 0;
}
.tech-orbit__stage--r1 { animation: techOrbitStageCW 40s linear infinite; }
.tech-orbit__stage--r2 { animation: techOrbitStageCCW 58s linear infinite; }
.tech-orbit__stage--r3 { animation: techOrbitStageCW 78s linear infinite; }

.tech-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
}
.tech-badge--r1 { --radius: 100px; }
.tech-badge--r2 { --radius: 180px; }
.tech-badge--r3 { --radius: 258px; }

.tech-badge__label {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.tech-badge__label i {
    font-size: 0.85em;
}
/* Counter-rotation: opposite keyframe set from the stage it lives in, same duration. */
.tech-orbit__stage--r1 .tech-badge__label { animation: techOrbitCCW 40s linear infinite; }
.tech-orbit__stage--r2 .tech-badge__label { animation: techOrbitCW 58s linear infinite; }
.tech-orbit__stage--r3 .tech-badge__label { animation: techOrbitCCW 78s linear infinite; }

@keyframes techOrbitCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes techOrbitCCW {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}
/* .tech-orbit__stage itself doesn't need the translate(-50%,-50%) component
   (it isn't centered/offset like a badge), so it uses dedicated keyframes. */
@keyframes techOrbitStageCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes techOrbitStageCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@media (max-width: 640px) {
    .tech-orbit { max-width: 360px; }
    .tech-badge--r1 { --radius: 68px; }
    .tech-badge--r2 { --radius: 118px; }
    .tech-badge--r3 { --radius: 168px; }
    .tech-badge__label { font-size: 0.55rem; padding: 0.28rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tech-orbit__stage {
        animation-duration: 160s;
    }
    .tech-orbit__stage--r1 .tech-badge__label,
    .tech-orbit__stage--r2 .tech-badge__label,
    .tech-orbit__stage--r3 .tech-badge__label {
        animation-duration: 160s;
    }
}

@media (max-width: 767px) {
    .hero-blob { display: none; }
}

/* Logo grid style — each logo shown in its own full color, on a white card
   for contrast against the dark theme (.logo-grid-card relies on the
   existing .hover-lift class for its hover behavior). Used by whichever of
   Our Clients / Our Partners is configured for the static-grid presentation. */

/* Logo carousel style — continuous auto-scroll, pauses while the user is
   touching/dragging it (see common.js), so native touch scrolling can take
   over on mobile without fighting the animation. Used by whichever of
   Our Clients / Our Partners is configured for the auto-sliding presentation. */
.logo-carousel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-carousel::-webkit-scrollbar {
    display: none;
}
.logo-carousel__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: logoCarouselScroll 32s linear infinite;
}
.logo-carousel.is-paused .logo-carousel__track {
    animation-play-state: paused;
}
.logo-carousel__item {
    flex: 0 0 auto;
    padding: 0 1.75rem;
}
.logo-carousel__img {
    height: 3.25rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.logo-carousel__item:hover .logo-carousel__img {
    opacity: 1;
    transform: scale(1.06);
}

/* Card modifier — each carousel item sits in its own white card (border +
   shadow) instead of a bare dimmed logo, so both dark and light-colored
   logos stay clearly visible against the section's dark background. */
.logo-carousel__item--card {
    padding: 0;
    margin: 0 0.6rem;
}
.logo-carousel__item--card .logo-carousel__card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 11.5rem;
    height: 7rem;
    padding: 0.85rem 1.1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.logo-carousel__item--card:hover .logo-carousel__card {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.4);
}
.logo-carousel__item--card .logo-carousel__img {
    opacity: 1;
    max-width: 100%;
    height: 4.25rem;
}
.logo-carousel__item--card:hover .logo-carousel__img {
    opacity: 1;
    transform: none;
}

@keyframes logoCarouselScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
    .logo-carousel__img { height: 2.5rem; max-width: 6.5rem; }
    .logo-carousel__item { padding: 0 1.1rem; }
    .logo-carousel__item--card { margin: 0 0.4rem; }
    .logo-carousel__item--card .logo-carousel__card { width: 9rem; height: 5.5rem; padding: 0.6rem 0.8rem; }
    .logo-carousel__item--card .logo-carousel__img { height: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .logo-carousel__track { animation-duration: 160s; }
}
