/**
 * rProcess Child Theme - Custom Styles
 * Animations, Responsive Design, Cross-Browser Compatibility
 * 
 * @package rprocess-child
 */

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Left Animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right Animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Shake Animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
    opacity: 0;
}

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

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* Delay Classes */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.animate-delay-600 {
    animation-delay: 0.6s;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
	 overflow: hidden; 
}
.e-con-full.e-flex, .e-con.e-flex>.e-con-inner,  .e-grid .e-con-full .e-con  { overflow: hidden;}
.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Container Responsive */
.rprocess-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 576px) {
    .rprocess-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .rprocess-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .rprocess-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .rprocess-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .rprocess-container {
        max-width: 1320px;
    }
}

/* Services Responsive */
.rprocess-services .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rprocess-services .col-md-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .rprocess-services .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .rprocess-services .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Case Studies Responsive */
.rprocess-case-studies .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rprocess-case-studies .col-md-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .rprocess-case-studies .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Process Steps Responsive */
.rprocess-process-steps {
    position: relative;
}

.rprocess-process-steps .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rprocess-process-steps .col-md-3 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .rprocess-process-steps .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .process-arrow {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .rprocess-process-steps .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Industries Responsive */
.rprocess-industries .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rprocess-industries .col-md-3 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 575px) {
    .rprocess-industries .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .rprocess-industries .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Statistics Responsive */
.rprocess-statistics .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rprocess-statistics .col-md-3 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .rprocess-statistics .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .rprocess-statistics .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Why Choose Us Responsive */
.rprocess-why-choose-us .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rprocess-why-choose-us .col-md-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .rprocess-why-choose-us .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Blog Posts Responsive */
.rprocess-latest-posts .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rprocess-latest-posts .col-md-4 {
    padding: 0 15px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .rprocess-latest-posts .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   CROSS-BROWSER COMPATIBILITY
   ============================================ */

/* Flexbox Fallbacks */
.rprocess-services .row,
.rprocess-case-studies .row,
.rprocess-process-steps .row,
.rprocess-industries .row,
.rprocess-statistics .row,
.rprocess-why-choose-us .row,
.rprocess-latest-posts .row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

/* Transform Fallbacks */
.animate-fade-in,
.animate-fade-in-up,
.animate-fade-in-down,
.animate-fade-in-left,
.animate-fade-in-right,
.animate-scale-in,
.animate-slide-in {
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

/* Animation Prefixes */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-moz-keyframes fadeIn {
    from {
        opacity: 0;
        -moz-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -moz-transform: translateY(0);
        transform: translateY(0);
    }
}

/* Transition Prefixes */
.hover-lift,
.hover-scale,
.hover-glow {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Transform Prefixes */
.hover-lift:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    transform: translateY(-5px);
}

.hover-scale:hover {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

/* Box Shadow Prefixes */
.hover-lift:hover {
    -webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hover-glow:hover {
    -webkit-box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    -moz-box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Service Card */
.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.service-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Case Study Card */
.case-study-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.case-study-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-icon img,
.case-study-icon i {
    width: 100%;
    height: auto;
    max-width: 60px;
}

/* Process Step */
.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    max-width: 100%;
    height: auto;
}

.process-arrow {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    font-size: 24px;
    color: #28a745;
}

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

/* Industry Item */
.industry-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-5px);
}

.industry-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-icon img {
    max-width: 100%;
    height: auto;
}

/* Stat Item */
.stat-item {
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* Reason Item */
.reason-item {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.reason-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.reason-number {
    font-size: 48px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 15px;
}

.reason-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

/* Blog Post Card */
.blog-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-image {
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
    flex: 1;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Visibility */
.hide-mobile {
    display: block;
}

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

.show-mobile {
    display: none;
}

@media (max-width: 767px) {
    .show-mobile {
        display: block;
    }
}

/* Spacing */
.mb-section {
    margin-bottom: 80px;
}

@media (max-width: 767px) {
    .mb-section {
        margin-bottom: 40px;
    }
}

/* Text Alignment */
.text-center-mobile {
    text-align: left;
}

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

/* Image Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Print Styles */
@media print {
    .animate-fade-in,
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-fade-in-left,
    .animate-fade-in-right,
    .animate-scale-in,
    .animate-slide-in {
        animation: none;
        opacity: 1;
    }
}


/* Button hover animation - text moves left, arrow moves right */

/* Initial state - ensure smooth transitions */
.elementor-button-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.elementor-button-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Hover effect */
.elementor-button:hover .elementor-button-text {
    transform: translateX(-8px);
}

.elementor-button:hover .elementor-button-icon {
    transform: translateX(8px);
}

/* Optional: Add some extra spacing between text and icon for better effect */
.elementor-button-content-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Optional: More dramatic effect with larger movement */
.elementor-button.dramatic-hover:hover .elementor-button-text {
    transform: translateX(-12px);
}

.elementor-button.dramatic-hover:hover .elementor-button-icon {
    transform: translateX(12px);
}

/* Optional: Slower, smoother animation */
.elementor-button.smooth-hover .elementor-button-text,
.elementor-button.smooth-hover .elementor-button-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optional: Add slight scale effect to arrow on hover */
.elementor-button:hover .elementor-button-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ============================================
   SCROLL DOWN INDICATOR
   Mouse and Arrow Animation
   ============================================ */

.scroll-down-indicator {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 10;
    color: #fff;
}

/* Mouse Animation */
.scroll-down-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

/* Mouse Wheel */
.scroll-down-indicator .mouse .wheel {
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrow Down Animation */
.scroll-down-indicator .arrow-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-down-indicator .arrow-down span {
    width: 2px;
    height: 15px;
    background: #fff;
    display: block;
    animation: arrowBounce 1.5s infinite;
}

.scroll-down-indicator .arrow-down span:nth-child(1) {
    animation-delay: 0s;
}

.scroll-down-indicator .arrow-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down-indicator .arrow-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrowBounce {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* Responsive */
@media (max-width: 767px) {
    .scroll-down-indicator {
        bottom: 20px;
    }
    
    .scroll-down-indicator .mouse {
        width: 25px;
        height: 40px;
    }
    
    .scroll-down-indicator .mouse .wheel {
        width: 3px;
        height: 8px;
    }
    
    .scroll-down-indicator .arrow-down span {
        width: 2px;
        height: 12px;
    }
}

/* Print Styles */
@media print {
    .animate-fade-in,
    .animate-fade-in-up,
    .animate-fade-in-down,
    .animate-fade-in-left,
    .animate-fade-in-right,
    .animate-scale-in,
    .animate-slide-in {
        animation: none;
        opacity: 1;
    }
    
    .scroll-down-indicator {
        display: none;
    }
}

