/* Custom animations with ease-in and ease-out */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card glassmorphism effect */
.service-card {
    background: rgba(30, 35, 45, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px 0 rgba(37, 99, 235, 0.4);
}

/* Service card icon circle styling */
.service-card .bg-blue-100 {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover .bg-blue-100 {
    background: rgba(37, 99, 235, 0.3) !important;
    transform: scale(1.1);
}

/* Process Container Styling */
.process-container {
    position: relative;
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    height: 220px;
}

.process-box {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    background: rgba(30, 35, 45, 1);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 40px 0 65px rgba(37, 99, 235, 0.15);
    padding: 0 80px;
    box-sizing: border-box;
    animation: boxFadeIn 0.8s ease-out forwards;
    z-index: 3;
}

.process-box--shadow-1,
.process-box--shadow-2 {
    position: absolute;
    top: 0;
    padding: 0;
}

.process-box--shadow-1 {
    left: 3%;
    width: 94%;
    z-index: 2;
    opacity: 0.6;
}

.process-box--shadow-2 {
    left: 2%;
    width: 96%;
    z-index: 1;
    opacity: 0.3;
}

@keyframes boxFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.process-progress {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    z-index: 10;
    padding: 0 5%;
}

.progress-bar {
    position: absolute;
    top: 3.5px;
    left: 5%;
    right: 5%;
    background: #E5E7EB;
    width: 90%;
    height: 3px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}

.progress-bar__fill {
    display: block;
    background: #2563EB;
    height: 100%;
    width: 0%;
    transition: width 0.6s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 0%;
    }
}

.progress-point {
    position: relative;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
}

.progress-point:hover {
    color: #2563EB;
}

.progress-point--complete,
.progress-point--active {
    color: #2563EB;
}

.progress-bullet {
    z-index: 10;
    position: relative;
    background: #9CA3AF;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0),
                0 0 0 0px #2563EB;
    transition: background 1s ease-in-out, box-shadow 1s ease-in-out;
}

.progress-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.progress-point--complete .progress-bullet {
    background: #9CA3AF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
                0 0 0 6px #2563EB;
    transition: none;
}

.progress-point--complete .progress-bullet::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: none;
}

.progress-point--active .progress-bullet {
    background: #9CA3AF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
                0 0 0 10px #2563EB;
    animation: bulletPulse 2s ease-in-out 1s infinite;
}

.progress-point--active .progress-bullet::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes bulletPulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
                    0 0 0 10px #2563EB;
    }
    50% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
                    0 0 0 14px #2563EB;
    }
}

.progress-label {
    position: absolute;
    top: 100%;
    left: 50%;
    margin: 20px 0 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: translate(-50%, 0);
    white-space: nowrap;
    color: #E5E7EB;
}

.progress-description {
    position: absolute;
    top: 100%;
    left: 50%;
    margin: 50px 0 0 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #9CA3AF;
    transform: translate(-50%, 0);
    white-space: nowrap;
}

/* Mobile responsiveness for process */
@media (max-width: 768px) {
    .process-container {
        height: auto;
        min-height: 400px;
    }
    
    .process-box {
        padding: 40px 20px 40px 60px;
        height: auto;
    }
    
    .process-progress {
        flex-direction: column;
        gap: 0;
        justify-content: space-between;
        align-items: flex-start;
        padding: 5% 0;
        height: 100%;
        min-height: 320px;
    }
    
    .progress-bar {
        left: 3.5px;
        top: 5%;
        bottom: 5%;
        width: 3px;
        height: 90%;
        right: auto;
    }
    
    .progress-bar__fill {
        width: 100%;
        height: 0%;
        transition: height 0.6s ease-out;
    }
    
    .progress-label {
        left: 40px;
        top: -3px;
        transform: translate(0, 0);
        margin: 0;
    }
    
    .progress-description {
        left: 40px;
        top: 20px;
        transform: translate(0, 0);
        margin: 0;
    }
}

/* Process steps animation - keeping old for compatibility */
.process-step {
    animation: slideInUp 0.6s ease-out;
}

.process-step:nth-child(1) {
    animation-delay: 0.1s;
}

.process-step:nth-child(2) {
    animation-delay: 0.2s;
}

.process-step:nth-child(3) {
    animation-delay: 0.3s;
}

.process-step:nth-child(4) {
    animation-delay: 0.4s;
}

/* Process step number circle pulse animation */
.process-step .bg-blue-600 {
    animation: stepPulse 8s ease-in-out infinite;
}

.process-step:nth-child(1) .bg-blue-600 {
    animation-delay: 0s;
}

.process-step:nth-child(3) .bg-blue-600 {
    animation-delay: 2s;
}

.process-step:nth-child(5) .bg-blue-600 {
    animation-delay: 4s;
}

.process-step:nth-child(7) .bg-blue-600 {
    animation-delay: 6s;
}

@keyframes stepPulse {
    0%, 100% {
        transform: scale(1);
    }
    12.5% {
        transform: scale(1.3);
    }
    25% {
        transform: scale(1);
    }
}

/* Process arrow animation */
.process-arrow {
    animation: arrowPulse 2s ease-in-out infinite;
}

.process-arrow:nth-of-type(2) {
    animation-delay: 0.2s;
}

.process-arrow:nth-of-type(4) {
    animation-delay: 0.4s;
}

.process-arrow:nth-of-type(6) {
    animation-delay: 0.6s;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(8px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease-in-out;
}

.btn-secondary {
    transition: all 0.3s ease-in-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation link active state */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #2563eb;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Form input focus effects */
input:focus,
textarea:focus {
    outline: none;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .fade-in,
    .fade-in-delay {
        animation: none;
    }
    
    .process-step {
        animation: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.6;
    }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}
