/* Custom styles for Obbys Glass Repair */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #059669, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hover card lift effect */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn-hover-lift {
    transition: all 0.3s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

/* Image hover zoom */
.image-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #059669, #047857);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #047857, #065f46);
}

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

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

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

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

/* 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;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
    }
}

/* Tablet and desktop optimizations */
@media (min-width: 768px) {
    .hero-gradient {
        background: linear-gradient(135deg, #064e3b 0%, #047857 30%, #059669 60%, #34d399 100%);
    }
}

/* Ensure all text is readable */
.text-white {
    color: #ffffff;
}

.text-emerald-950 {
    color: #022c22;
}

.text-emerald-900 {
    color: #064e3b;
}

.text-emerald-800 {
    color: #065f46;
}

.text-emerald-700 {
    color: #047857;
}

.text-emerald-600 {
    color: #059669;
}

.text-emerald-500 {
    color: #10b981;
}

.text-emerald-400 {
    color: #34d399;
}

.text-emerald-300 {
    color: #6ee7b7;
}

.text-emerald-200 {
    color: #a7f3d0;
}

.text-emerald-100 {
    color: #d1fae5;
}

.text-emerald-50 {
    color: #ecfdf5;
}
