/* Custom Styles for Mama Fua Laundry */

/* ======================
   Services Page
   ====================== */
.services-hero {
    position: relative;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    padding: 120px 0 80px;
    margin-top: -76px; /* Account for fixed navbar */
    overflow: hidden;
}

.services-hero h1 {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ======================
   Homepage Boxes
   ====================== */
.feature-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    z-index: 1;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(13, 110, 253, 0.2);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box .icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ff 100%);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.feature-box:hover .icon-wrapper {
    transform: scale(1.05) rotate(5deg);
}

.feature-box .icon-wrapper i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-box h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    position: relative;
    padding-bottom: 0.75rem;
}

.feature-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.feature-box:hover h3::after {
    width: 60px;
}

.feature-box p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-box .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.feature-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.feature-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #0a58ca, #0aa2c0);
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 6px;
}

.feature-box .btn:hover::before {
    width: 100%;
}

/* Stats Boxes */
.stats-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stats-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03) 0%, rgba(13, 202, 240, 0.03) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(13, 110, 253, 0.1);
}

.stats-box:hover::after {
    opacity: 1;
}

.stats-box .icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ff 100%);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.1);
}

.stats-box .icon i {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-box h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-box p {
    color: #64748b;
    margin-bottom: 0;
    font-weight: 500;
}

/* Service Cards */
.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    background: #fff;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(13, 110, 253, 0.2);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* How It Works Section */
.step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonials */
.testimonial-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

.accordion-button::after {
    background-size: 1.25rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center bottom/cover;
    opacity: 0.5;
}

/* ======================
   Hero Section
   ====================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    overflow: hidden;
    padding: 120px 0 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -76px; /* Account for fixed navbar */
}

/* Particles.js Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.hero-section:hover #particles-js {
    opacity: 0.9;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

/* Promo Banner */
.promo-banner {
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.promo-banner .countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.promo-banner:hover .countdown-timer {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.promo-banner .countdown-item {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-banner .countdown-item span:first-child {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.promo-banner .countdown-item span:last-child {
    font-size: 0.65rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    opacity: 0.9;
}

.promo-banner .countdown-separator {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -0.25rem;
    position: relative;
    top: -2px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Hero Image */
.hero-image-container {
    position: relative;
    padding: 2rem;
    perspective: 1000px;
}

.hero-main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-main-image:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Floating Badges */
.floating-badge {
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    z-index: 3;
}

.floating-badge:nth-child(2) {
    animation-delay: 2s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

.mouse-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 6px;
    height: 8px;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Hero Shape */
.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-group {
    display: flex;
    margin-right: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: -10px;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:hover {
    transform: translateY(-5px);
    z-index: 2;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
        margin: 2rem auto;
    }
    
    .trust-indicators {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.05rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .benefit-item {
        flex-direction: row;
        text-align: left;
        padding: 0.75rem 1rem;
    }
    
    .benefit-icon {
        margin-right: 1rem;
        margin-bottom: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    opacity: 0.9;
    z-index: 1;
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    clip-path: polygon(0 80%, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

/* Stats Section */
.stats-section {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.counter-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.counter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    opacity: 0;
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15) !important;
}

.counter-box:hover::before {
    opacity: 1;
}

.counter {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: inline-block;
    line-height: 1;
    transition: all 0.3s ease;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.counter-box:hover .icon-circle {
    transform: scale(1.1);
}

/* How It Works Section */
#how-it-works {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.step-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    opacity: 0;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-features {
    margin: 1.5rem 0;
}

.step-features .bi {
    min-width: 20px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .step-card {
        margin-bottom: 2rem;
    }
    
    .counter-box {
        margin-bottom: 1.5rem;
    }
}

/* Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Trust Logos */
.trust-logos img {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.trust-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.cta-section .btn-light {
    color: #0d6efd;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Promo Banner */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .counter-box {
        margin-bottom: 20px;
    }
}

/* Custom Buttons */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-light:hover {
    color: #0d6efd;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}
