/* Custom CSS to complement Tailwind */

/* Base styles */
body {
    line-height: 1.6;
}

/* Accessibility focus styles */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

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

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Back to top button styles */
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Form input focus styles */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Service card hover effect */
.service-card:hover {
    transform: translateY(-5px);
}

/* Portfolio image overlay transition */
.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Testimonial card styling */
.testimonial-card {
    transition: box-shadow 0.3s ease;
}

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

/* WCAG 2.2 AAA contrast compliance */
.text-blue-800 {
    color: #1e40af; /* Ensures proper contrast on white */
}

.bg-blue-800 {
    background-color: #1e40af; /* Ensures proper contrast with white text */
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
}

/* Add to your CSS */
[data-tooltip] {
    position: relative;
}
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}