/* Custom Styles for Deserve Technologies */

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

/* Body defaults */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Custom gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Custom hover effects */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button styles */
.btn-primary {
    background: #2563eb;
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    border: 2px solid white;
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: #2563eb;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.show {
    max-height: 500px;
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Loading animation for form submission */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Success and error messages */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #059669;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Section padding */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

/* Link hover effects */
a {
    transition: all 0.3s ease;
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    animation: countUp 0.8s ease-out;
}

/* Service icon animation */
.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Footer styling */
footer a:hover {
    color: #60a5fa !important;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-lg {
        backdrop-filter: blur(10px);
    }
}

/* Client Logos Styling */
.client-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-width: 150px;
    max-width: 200px;
}

.client-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.1);
}

/* Grayscale filter for logos */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Client Carousel Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-carousel {
    animation: scroll 20s linear infinite;
    animation-play-state: running;
}

.client-carousel:hover {
    animation-play-state: paused;
}

/* Responsive adjustments for client logos */
@media (max-width: 768px) {
    .client-logo {
        max-height: 60px;
    }
    
    .client-logo-wrapper {
        min-width: 120px;
        max-width: 150px;
        padding: 0.75rem;
    }
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    .no-print {
        display: none;
    }
}

