/* Custom CSS for DASH Consult Website */

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

.animate-scroll {
    animation: scroll 30s linear infinite;
}

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

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

/* Custom button hover effects */
.btn-primary {
    background-color: #0047a9;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #709ede;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 71, 169, 0.3);
}

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

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

/* Form styling */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0047a9;
    box-shadow: 0 0 0 3px rgba(0, 71, 169, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #0047a9;
    box-shadow: 0 0 0 3px rgba(0, 71, 169, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #0047a9;
    box-shadow: 0 0 0 3px rgba(0, 71, 169, 0.1);
}

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

/* Success message styling */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #a7f3d0;
    margin-bottom: 1rem;
}

/* Error message styling */
.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fca5a5;
    margin-bottom: 1rem;
}

/* Blog post styling */
.blog-post {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post h3 {
    color: #0047a9;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Service detail page styling */
.service-hero {
    background: linear-gradient(135deg, #0047a9 0%, #709ede 100%);
    color: white;
    padding: 4rem 0;
}

.service-content {
    padding: 3rem 0;
}

.service-features {
    background: #f8fafc;
    padding: 3rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    background: #0047a9;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Contact page styling */
.contact-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0.5rem;
}

.contact-info h3 {
    color: #0047a9;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Map container */
.map-container {
    height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .client-carousel .flex {
        animation: none;
    }
    
    .animate-scroll {
        animation: none;
    }
    
    .service-hero {
        padding: 2rem 0;
    }
    
    .service-content {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .floating-whatsapp,
    .mobile-menu-button,
    .mobile-menu {
        display: none !important;
    }
}

/* Blog Post Tiles */
.blog-post-tile {
    transition: all 0.3s ease;
}

.blog-post-tile:hover {
    transform: translateY(-5px);
}

.blog-post-tile img {
    transition: transform 0.3s ease;
}

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

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    flex-shrink: 0;
    box-sizing: border-box;
}

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

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
    }
}
