/* Custom styles for Aquasoft landing page */

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* Mobile navigation improvements */
    .mobile-menu {
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .left-container-text{
        margin-top: 200px;
    }
    
    /* Mobile hero section improvements */
    .hero-text {
        text-align: center;
    }
    
    /* Mobile container padding adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile hero section specific adjustments */
    #home .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Mobile text content adjustments */
    #home .text-white {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Mobile timeline improvements */
    .timeline-item {
        margin-bottom: 1rem;
    }
    
    /* Mobile product grid improvements */
    .product-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile video testimonials */
    .video-testimonial {
        margin-bottom: 1rem;
    }
    
    /* Mobile contact form improvements */
    .contact-form {
        padding: 1rem;
    }
    
    /* Mobile button improvements */
    .btn-mobile {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* Mobile spacing adjustments */
    .mobile-padding {
        padding: 1rem;
    }
    
    /* Mobile text sizing */
    .mobile-text-sm {
        font-size: 0.875rem;
    }
    
    .mobile-text-base {
        font-size: 1rem;
    }
    
    .mobile-text-lg {
        font-size: 1.125rem;
    }
    
    .mobile-text-xl {
        font-size: 1.25rem;
    }
    
    /* Ensure no excessive margins on mobile */
    .max-w-lg {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Tablet responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .tablet-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tablet-text-center {
        text-align: center;
    }
}

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

/* Banner Slider Styles */
.banner-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Banner text overlay transitions */
#home h1,
#home p {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

#home h1 span,
#home p {
    opacity: 1;
    transform: translateY(0);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Timeline slider styles */
.timeline-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Timeline specific styles */
.timeline-container {
    position: relative;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 2rem;
    background: #3b82f6;
}

.timeline-item:first-child::before {
    display: none;
}

/* Product slider styles */
.product-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.product-item {
    flex: 0 0 25%;
    min-width: 25%;
}

/* Expert slider styles */
.expert-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.expert-item {
    flex: 0 0 25%;
    min-width: 25%;
}

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

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e40af;
    border-radius: 4px;
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-item {
        flex: 0 0 50%;
        min-width: 50%;
    }
    
    .expert-item {
        flex: 0 0 50%;
        min-width: 50%;
    }
    
    /* Timeline items maintain their Tailwind classes */
    
    .timeline-item::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .expert-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    /* Timeline items maintain their Tailwind classes */
}

@media (max-width: 480px) {
    .product-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .expert-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .left-container-text{
       position: absolute;
       bottom: 60px;
    }
    
    /* Timeline items maintain their Tailwind classes */
}

/* Custom wave patterns */
.wave-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero section enhancements */
.hero-bg {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #1e40af;
    padding: 12px 24px;
    border: 2px solid #1e40af;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}
