/* Home page styles - Modern Morpho Design */

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(26, 79, 160, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

#hero .hero-center {
    display: grid;
    place-items: center;
    min-height: 400px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.1;
}

.hero-subtitle {
    margin-top: 16px;
    font-size: clamp(20px, 3vw, 24px);
    color: #475569;
    font-weight: 500;
    max-width: 600px;
    line-height: 1.4;
}

/* Section Headers */
section h3 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 32px 0;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Categories Section */
#categories {
    padding: 80px 0;
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 1px 3px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 79, 160, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
}

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

.category-image-container {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -24px -24px 16px -24px;
    position: relative;
    z-index: 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 160px; /* Ensure minimum height */
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
    display: block; /* Ensure image is displayed */
    min-height: 160px; /* Ensure minimum height */
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.category-card p {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    position: relative;
    z-index: 1;
    padding: 0;
}

.category-count {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    padding: 0 0 24px 0;
}

/* Featured Services Section */
#featured-services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 1px 3px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 79, 160, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
}

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

.service-badge {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
}

.service-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 1;
}

.service-category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 16px;
}

.category-name {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    background: rgba(0,0,0,0.04);
    padding: 4px 8px;
    border-radius: 12px;
}

.service-provider {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-provider span {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.service-review {
    position: relative;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    border-left: 3px solid #3b82f6;
    position: relative;
    z-index: 1;
}

.review-quote {
    position: absolute;
    top: -8px;
    left: 8px;
    font-size: 24px;
    color: #3b82f6;
    font-weight: bold;
    line-height: 1;
}

.review-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
    margin: 0;
    padding-top: 8px;
    font-style: italic;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

.service-meta .rating {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.service-meta .price {
    font-weight: 700;
    color: #1e40af;
    font-size: 16px;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 1px 3px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 79, 160, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
}

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

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(26, 79, 160, 0.3);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    margin-bottom: 4px;
}

.author-location {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.author-info .rating {
    font-size: 14px;
    letter-spacing: 2px;
}

/* How It Works Section */
#how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.step-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    padding: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 1px 3px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 79, 160, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.08),
        0 8px 16px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
}

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

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(26, 79, 160, 0.3);
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.step-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .categories-grid,
    .services-grid,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .categories-grid,
    .services-grid,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    #hero .hero-center {
        min-height: 320px;
    }
    
    .hero-title {
        font-size: clamp(36px, 8vw, 48px);
    }
    
    .hero-subtitle {
        font-size: clamp(18px, 4vw, 20px);
    }
    
    section h3 {
        font-size: clamp(24px, 6vw, 28px);
    }
    
    #categories,
    #featured-services,
    #testimonials,
    #how-it-works {
        padding: 60px 0;
    }
}


