/* Maintenance Guy Website Custom Styles - Coastal Theme */

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

::-webkit-scrollbar-track {
    background: #0f766e;
}

::-webkit-scrollbar-thumb {
    background: #69B2B0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5A9A98;
}

/* Smooth transitions for all elements */
* {
    transition: all 0.2s ease-in-out;
}

/* Enhanced focus states */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(105, 178, 176, 0.1);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced card hover effects */
.service-card, .feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(105, 178, 176, 0.1), 0 10px 10px -5px rgba(105, 178, 176, 0.04);
}

/* Gradient text animation */
.gradient-text {
    background: linear-gradient(45deg, #69B2B0, #5A9A98, #69B2B0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced form styling */
.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.75rem;
    pointer-events: none;
    transition: all 0.2s ease;
    color: #9ca3af;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.75rem;
    color: #69B2B0;
    background: #0f766e;
    padding: 0 0.25rem;
}

/* Floating label animation */
.floating-label {
    transform: translateY(0);
    transition: transform 0.2s ease;
}

.floating-label.focused {
    transform: translateY(-1.5rem);
}

/* Enhanced navigation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #69B2B0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animations */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Enhanced hero section */
.hero-gradient {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #0f766e 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(105, 178, 176, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(105, 178, 176, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Service icons animation */
.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contact form success/error states */
.form-success {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-error {
    border-color: #69B2B0;
    box-shadow: 0 0 0 3px rgba(105, 178, 176, 0.1);
}

/* WhatsApp button pulse animation */
.whatsapp-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Enhanced typography */
.heading-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-gradient h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-gradient h1 {
        font-size: 2rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-teal-800, .bg-teal-900 {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-[#69B2B0] {
        background-color: #69B2B0 !important;
        border: 2px solid #ffffff !important;
    }
    
    .text-[#69B2B0] {
        color: #69B2B0 !important;
    }
}

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

/* Focus visible for accessibility */
.focus-visible:focus {
    outline: 2px solid #69B2B0;
    outline-offset: 2px;
}

/* Enhanced button states */
.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form validation visual feedback */
.input-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Success message animation */
.success-message {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced section transitions */
.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom selection color */
::selection {
    background: rgba(105, 178, 176, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(105, 178, 176, 0.3);
    color: #ffffff;
}
