/* Additional custom styles */

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid #4d845e;
    outline-offset: 2px;
}

/* Custom selection color */
::selection {
    background-color: #4d845e;
    color: white;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[lazy] {
    opacity: 0;
}

img[lazy].loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid currentColor;
    }
}

/* Landscape mode adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        animation: none;
    }
}

/* Tablet and desktop optimizations */
@media (min-width: 768px) {
    .service-card:hover {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .blob-1 {
        width: 600px;
        height: 600px;
    }
    
    .blob-2 {
        width: 500px;
        height: 500px;
    }
}

/* Custom scrollbar for Webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: #4d845e;
    border-radius: 6px;
    border: 3px solid #FAFAF5;
}

::-webkit-scrollbar-thumb:hover {
    background: #366746;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4d845e #FAFAF5;
}

/* Loading state for buttons */
button:disabled,
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form validation styles */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #4d845e;
}

/* Card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #4d845e 0%, #9dc3aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Shadow utilities */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animation delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}
