/* Custom Styles & Modern Next.js Level Animations for MIDSOFT */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0F172A;
}
::-webkit-scrollbar-thumb {
    background: #5230DA;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7A5FE2;
}

/* Hero Background Gradient Mesh */
.hero-gradient-bg {
    background: linear-gradient(135deg, #F4F0FF 0%, #FFFFFF 50%, #E6DFFF 100%);
    position: relative;
}

/* Particle / Blob Floating Animations */
@keyframes blobFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.animate-blob {
    animation: blobFloat 8s infinite ease-in-out;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Infinite Logo Marquee */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

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

/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service Card Hover Effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(82, 48, 218, 0.35);
}

/* 3D Interactive Canvas Sphere */
#sphereCanvas {
    width: 100%;
    height: 100%;
    max-width: 480px;
    max-height: 480px;
    display: block;
    margin: 0 auto;
}

/* Pulse animation for CTA badges */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(82, 48, 218, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(82, 48, 218, 0);
    }
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Tab Switcher Styling */
.tab-btn.active {
    background-color: #5230DA;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(82, 48, 218, 0.4);
}

/* Testimonial Swiper Pagination */
.swiper-pagination-bullet-active {
    background-color: #5230DA !important;
    width: 24px !important;
    border-radius: 6px !important;
}

/* Reveal on Scroll Helper Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Border Line Effect for Value Cards */
.animated-border-card {
    position: relative;
    overflow: hidden;
}

.animated-border-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7A5FE2, transparent);
    transition: all 0.6s ease;
}

.animated-border-card:hover::before {
    left: 100%;
}

/* Paragraph Text Justification (Equal Left and Right Alignment on Desktop & Mobile) */
p.text-justify,
.text-justify,
.card-paragraph-justify p,
.p-justify {
    text-align: justify !important;
    text-align-last: left !important;
    text-justify: inter-word !important;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

