/* Custom styles that complement Tailwind */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6dd3ad, #40bf91);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #40bf91, #21a876);
}

/* Selection color */
::selection {
    background: #ceeedd;
    color: #1a202c;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #40bf91;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .float-card {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    .hero-bg-shape,
    .float-card,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
        background: transparent;
        color: #000;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #1a202c;
    }
    
    .btn-primary {
        border: 2px solid #fff;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-container {
        min-height: auto;
        padding: 80px 0;
    }
    
    .hero-image {
        max-width: 300px;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
    }
    
    .hero-content .btn-primary,
    .hero-content .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .float-card {
        display: none;
    }
}

/* Large screen optimizations */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
    /* These will be overridden by the explicit color choices in the HTML */
}

/* Loading state for images */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Hover effects for interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Subtle pattern for background sections */
.dot-pattern {
    background-image: radial-gradient(circle, #6dd3ad 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Gradient text fallback for older browsers */
.gradient-text {
    color: #1a202c;
    background: linear-gradient(135deg, #1a202c 0%, #40bf91 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure adequate contrast for all text */
.text-midnight-500 {
    color: #6b7b8c;
}

.text-midnight-600 {
    color: #5a6775;
}

.text-mint-600 {
    color: #21a876;
}

.text-mint-700 {
    color: #14855b;
}
