/* Service page showcases: logo flip carousel, software horizontal, WP flip, mobile stack */

/* ----- Shared horizontal carousel (software) ----- */
.software-svc-section {
    padding: 5rem 0;
    background: linear-gradient(165deg, #eef2ff 0%, #e0e7ff 35%, #c7d2fe 70%, #a5b4fc 100%);
    position: relative;
    overflow: hidden;
}

.software-svc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.45), transparent 55%);
    pointer-events: none;
}

.software-svc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.software-svc-inner > h2 {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #1e1b4b;
}

.software-svc-hint {
    text-align: center;
    color: #4338ca;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.svc-h-carousel {
    position: relative;
}

.svc-h-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.svc-h-scroll:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 4px;
}

.svc-h-scroll::-webkit-scrollbar {
    height: 6px;
}

.svc-h-scroll::-webkit-scrollbar-thumb {
    background: #818cf8;
    border-radius: 999px;
}

.svc-h-card {
    flex: 0 0 min(100%, 340px);
    scroll-snap-align: center;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(30, 27, 75, 0.12);
    border-top: 4px solid #6366f1;
}

.svc-h-card .service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border-radius: 14px;
}

.svc-h-card .service-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.svc-h-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0 0.75rem;
    color: #1e1b4b;
}

.svc-h-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

.svc-h-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.svc-h-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #1e1b4b;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.svc-h-btn:hover {
    background: #312e81;
    transform: scale(1.05);
}

.svc-h-dots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.svc-h-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #c7d2fe;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.svc-h-dot[aria-current="true"] {
    background: #4f46e5;
    transform: scale(1.15);
}

/* ----- Logo design: orange flip + horizontal rail ----- */
.logo-svc-section {
    padding: 5rem 0;
    background: linear-gradient(145deg, #0c1929 0%, #132447 40%, #1a365d 70%, #9a3412 100%);
    position: relative;
    overflow: hidden;
}

.logo-svc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.25), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15), transparent 40%);
    pointer-events: none;
}

.logo-svc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.logo-svc-inner > h2 {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.logo-svc-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.logo-svc-rail {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.logo-flip-card {
    flex: 0 0 min(100%, 300px);
    scroll-snap-align: center;
    height: 280px;
    perspective: 1100px;
    cursor: pointer;
}

.logo-flip-card:focus {
    outline: none;
}

.logo-flip-card:focus-visible .logo-flip-inner {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #f97316;
}

.logo-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
}

.logo-flip-card.is-flipped .logo-flip-inner {
    transform: rotateY(180deg);
}

.logo-flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(145deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.logo-flip-back {
    transform: rotateY(180deg);
    justify-content: center;
}

.logo-flip-front .logo-flip-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(12, 36, 97, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-flip-front .logo-flip-icon svg {
    width: 36px;
    height: 36px;
    color: #fff;
}

.logo-flip-front h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0c2461;
    margin: 0;
    line-height: 1.3;
}

.logo-flip-back p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #fff;
    margin: 0;
}

.logo-svc-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.logo-svc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.logo-svc-dot[aria-current="true"] {
    background: #fb923c;
    transform: scale(1.2);
}

/* ----- WordPress: compact flip + mint bg ----- */
.wp-svc-section {
    padding: 5rem 0;
    background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 45%, #a7f3d0 85%, #6ee7b7 100%);
    position: relative;
    overflow: hidden;
}

.wp-svc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 40% at 70% 10%, rgba(255, 255, 255, 0.5), transparent 50%);
    pointer-events: none;
}

.wp-svc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.wp-svc-inner > h2 {
    text-align: center;
    font-size: clamp(1.65rem, 3.8vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #064e3b;
}

.wp-svc-hint {
    text-align: center;
    color: #047857;
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
}

.wp-svc-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.wp-flip-card {
    flex: 0 0 220px;
    height: 220px;
    perspective: 900px;
    cursor: pointer;
    scroll-snap-align: center;
}

.wp-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s ease;
    border-radius: 0.85rem;
}

.wp-flip-card.is-flipped .wp-flip-inner {
    transform: rotateY(180deg);
}

.wp-flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0.85rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, #059669 0%, #10b981 100%);
    box-shadow: 0 10px 28px rgba(6, 78, 59, 0.25);
}

.wp-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #047857 0%, #059669 100%);
}

.wp-flip-front .wp-flip-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.65rem;
    color: #fff;
}

.wp-flip-front .wp-flip-icon svg {
    width: 44px;
    height: 44px;
}

.wp-flip-front h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #022c22;
    margin: 0;
    line-height: 1.25;
}

.wp-flip-back p {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #ecfdf5;
    margin: 0;
}

.wp-svc-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.wp-svc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(4, 120, 87, 0.35);
    cursor: pointer;
}

.wp-svc-dot[aria-current="true"] {
    background: #047857;
    transform: scale(1.2);
}

/* ----- Mobile app: vertical stack / crossfade slider ----- */
.ma-svc-section {
    padding: 5rem 0;
    background: linear-gradient(155deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%);
    position: relative;
    overflow: hidden;
}

.ma-svc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(167, 139, 250, 0.35), transparent 55%);
    pointer-events: none;
}

.ma-svc-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

.ma-svc-inner > h2 {
    text-align: center;
    font-size: clamp(1.65rem, 3.8vw, 2.35rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ma-svc-hint {
    text-align: center;
    color: rgba(221, 214, 254, 0.95);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.ma-svc-viewport {
    position: relative;
    min-height: 320px;
    margin: 0 auto;
    perspective: 960px;
}

.ma-svc-slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    transform: translateY(28px) scale(0.9) rotateX(8deg);
    transform-origin: center top;
    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(0.34, 1.25, 0.64, 1);
    pointer-events: none;
    z-index: 0;
}

.ma-svc-slide.is-active {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    pointer-events: auto;
    z-index: 2;
}

.ma-svc-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1.15rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ma-svc-card .service-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.ma-svc-card .service-icon svg {
    width: 34px;
    height: 34px;
    color: #fff;
}

.ma-svc-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0 0 0.75rem;
}

.ma-svc-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
    margin: 0;
}

.ma-svc-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.ma-svc-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.ma-svc-dot[aria-current="true"] {
    background: #c4b5fd;
    border-color: #c4b5fd;
    transform: scale(1.15);
}

@media (max-width: 480px) {
    .svc-h-card {
        flex-basis: min(100%, 300px);
    }

    .wp-flip-card {
        flex-basis: 200px;
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-flip-inner,
    .wp-flip-inner,
    .ma-svc-slide {
        transition-duration: 0.01ms !important;
    }
}
