
/* Custom Animations & Utilities */
.wave-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.wave-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Smooth Scroll Behavior with offset for fixed header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #2dd4bf, #fbbf24);
    z-index: 100;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

/* Hardware Acceleration for smoother animations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Enhanced Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Image Loading */
img {
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}
/* Custom Selection Color */
::selection {
    background-color: #14b8a6;
    color: white;
}
/* Service Card Hover Effects - Enhanced */
.service-card {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 12px 24px -8px rgba(20, 184, 166, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(20, 184, 166, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}
/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Button Ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

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

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 1000px 100%;
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Mobile Menu Animation */
.mobile-menu-enter {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu-enter-active {
    transform: translateX(0);
}
/* Review Card Hover - Enhanced */
.review-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.review-card:hover {
    transform: translateY(-8px) translateX(4px);
    box-shadow: -8px 12px 30px -5px rgba(0, 0, 0, 0.12), -4px 6px 12px -2px rgba(0, 0, 0, 0.05);
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Parallax Container */
.parallax-container {
    transform-style: preserve-3d;
    perspective: 1000px;
}
/* Map Container - Enhanced */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 1rem;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.map-container:hover::after {
    border-color: rgba(20, 184, 166, 0.3);
}

.map-container iframe {
    filter: grayscale(100%) contrast(1.2) opacity(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1) opacity(1);
    transform: scale(1.02);
}

/* Button Ripple Enhancement */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Floating Animation Enhancement */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    66% { 
        transform: translateY(-5px) rotate(-1deg); 
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Gradient Text Animation */
.text-gradient-animated {
    background: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 50%, #fbbf24 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}