/* Custom CSS for One Minute Chemical Solutions - Enhanced Styling */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    line-height: 1.6;
    color: #333;
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

p {
    line-height: 1.7;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out;
}

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

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

/* Enhanced button styles */
.btn-primary {
    background: #29176D;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(41, 23, 109, 0.3);
}

.btn-primary:hover {
    background: #1e0f57;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(41, 23, 109, 0.4);
}

.btn-secondary {
    background: #0993DB;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(9, 147, 219, 0.3);
}

.btn-secondary:hover {
    background: #0776b8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 147, 219, 0.4);
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #29176D;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #29176D;
    font-weight: 600;
}

/* Enhanced product cards */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

/* Service card enhancements */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.service-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Form enhancements */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    background: white;
}

.form-input:focus {
    border-color: #29176D;
    box-shadow: 0 0 0 4px rgba(41, 23, 109, 0.1);
    outline: none;
    background: #fafafa;
}

.form-input:hover {
    border-color: #0993DB;
}

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

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

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #29176D;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e0f57;
}

/* Enhanced back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #29176D;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(41, 23, 109, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0993DB;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(41, 23, 109, 0.4);
}

/* Section spacing improvements */
.section-padding {
    padding: 120px 0;
}

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

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Color utilities */
.text-primary {
    color: #29176D;
}

.text-secondary {
    color: #0993DB;
}

.bg-primary {
    background-color: #29176D;
}

.bg-secondary {
    background-color: #0993DB;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
    
    .product-card:hover {
        transform: translateY(-6px) scale(1.02);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Focus states for accessibility */
.focus-visible:focus {
    outline: 3px solid #29176D;
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #29176D;
    outline-offset: 2px;
}

/* Enhanced link styles */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Notification enhancements */
.notification {
    border-radius: 12px;
    padding: 20px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background: #10b981;
    border-left: 5px solid #059669;
}

.notification.error {
    background: #ef4444;
    border-left: 5px solid #dc2626;
}

.notification.info {
    background: #0993DB;
    border-left: 5px solid #0776b8;
}

/* Enhanced spacing utilities */
.space-y-large > * + * {
    margin-top: 3rem;
}

.space-y-xlarge > * + * {
    margin-top: 4rem;
}

/* Performance optimizations */
.will-change-transform {
    will-change: transform;
}

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

/* Print optimizations */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
        font-size: 12pt;
    }
    
    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .shadow-soft,
    .shadow-medium,
    .shadow-strong {
        box-shadow: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-primary {
        background-color: #000;
    }
    
    .bg-secondary {
        background-color: #003d82;
    }
    
    .text-primary {
        color: #000;
    }
    
    .text-secondary {
        color: #003d82;
    }
}

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

/* Hero Slideshow Styles */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

/* Slideshow Navigation Dots */
.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active,
.slideshow-dot:hover {
    background-color: white;
    border-color: white;
    transform: scale(1.2);
}

/* Slideshow Animation */
@keyframes slideLeft {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.slide-enter-left {
    animation: slideLeft 1s ease-in-out;
}

.slide-enter-right {
    animation: slideRight 1s ease-in-out;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 90px;
        right: 20px;
        font-size: 20px;
    }
} 