/* Custom styles that complement Tailwind CSS */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling is handled in HTML */

/* Selection color */
::selection {
    background-color: #14b8a6;
    color: white;
}

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

/* Navbar scroll effect */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.1);
}

/* Hero image gradient overlay */
.hero-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(248, 250, 252, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Decorative background patterns */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(20, 184, 166, 0.1) 1px, transparent 0);
    background-size: 30px 30px;
}

/* Subtle animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Pulse animation for CTA */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #5eead4);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Gallery item overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Mobile menu backdrop */
.mobile-menu {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Custom checkbox/radio styles */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    a {
        text-decoration: underline;
        color: #333 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 2px solid ButtonText;
    }
    
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Reduced motion support */
@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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-asymmetric {
        min-height: auto;
    }
    
    .hero-text-side {
        padding: 2rem;
    }
    
    .hero-image-side {
        min-height: 40vh;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .hero-text-side {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

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

/* Touch device optimizations */
@media (hover: none) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: translateY(-4px);
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}

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

/* Aspect ratio utilities */
.aspect-card {
    aspect-ratio: 4/5;
}

.aspect-square-custom {
    aspect-ratio: 1/1;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle border gradient */
.border-gradient {
    border-image: linear-gradient(135deg, #14b8a6, #5eead4) 1;
}

/* Soft shadow variants */
.shadow-soft {
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
}

.shadow-teal {
    box-shadow: 0 10px 40px -10px rgba(20, 184, 166, 0.3);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
