/* Reference-Style Category Boxes */
:root {
    --reference-sage: #9CAF88;
    --reference-taupe: #B8A082;
    --reference-lavender: #C8B5D1;
    --reference-teal: #2D5A5A;
    --reference-gold: #D4AF37;
    --reference-text: #2C2C2C;
}

/* Perfect Match Section - Reference Style */
.perfect-match-section {
    background: #ffffff;
    padding: 4rem 0;
    margin: 0;
}

.perfect-match-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.perfect-match-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--reference-text);
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-align: center;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #2C2C2C 0%, #D4AF37 50%, #2C2C2C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.perfect-match-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--reference-gold) 0%, #B8941F 100%);
    border-radius: 2px;
}

.perfect-match-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    color: #888888;
    margin-bottom: 3.5rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
}

.perfect-match-subtitle::before {
    content: '✨';
    margin-right: 8px;
    font-size: 1.1em;
}

.perfect-match-subtitle::after {
    content: '✨';
    margin-left: 8px;
    font-size: 1.1em;
}

/* Reference-Style Category Cards */
.category-card-modern {
    background: #ffffff;
    border-radius: 16px 16px 0 0; /* Rounded top-left and bottom-right */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Category Image Container */
.category-image-modern {
    position: relative;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Reference-style backgrounds for different categories */
.category-card-modern:nth-child(1) .category-image-modern {
    background: linear-gradient(135deg, var(--reference-sage) 0%, #8A9A7A 100%);
}

.category-card-modern:nth-child(2) .category-image-modern {
    background: linear-gradient(135deg, var(--reference-taupe) 0%, #A6906F 100%);
}

.category-card-modern:nth-child(3) .category-image-modern {
    background: linear-gradient(135deg, var(--reference-lavender) 0%, #B5A4C7 100%);
}

.category-card-modern:nth-child(4) .category-image-modern {
    background: linear-gradient(135deg, var(--reference-teal) 0%, #1F4A4A 100%);
}

.category-card-modern:nth-child(5) .category-image-modern {
    background: linear-gradient(135deg, #E8D5B7 0%, #D4C4A8 100%);
}

.category-card-modern:nth-child(6) .category-image-modern {
    background: linear-gradient(135deg, #F4E4C1 0%, #E6D3A3 100%);
}

.category-card-modern:nth-child(7) .category-image-modern {
    background: linear-gradient(135deg, #D1C7E8 0%, #C0B5D6 100%);
}

.category-card-modern:nth-child(8) .category-image-modern {
    background: linear-gradient(135deg, #A8D8EA 0%, #8BC5D6 100%);
}

/* Category Image */
.category-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.1) contrast(1.05);
}

.category-card-modern:hover .category-image-modern img {
    transform: scale(1.08);
}

/* Category Text */
.category-text-modern {
    padding: 1.5rem 1.25rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.category-text-modern h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--reference-text);
    margin: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Removed View All Card styles - keeping only category boxes */

/* Hover Effects */
.category-card-modern:hover .category-image-modern {
    box-shadow: inset 0 0 0 2px var(--reference-gold);
}

/* Grid Layout - 4 categories centered */
.perfect-match-section .row {
    margin: 0 -15px;
    justify-content: center;
}

.perfect-match-section .col-xl-3,
.perfect-match-section .col-lg-3,
.perfect-match-section .col-md-6,
.perfect-match-section .col-6 {
    padding: 0 15px;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .perfect-match-title {
        font-size: 2.5rem;
    }
    
    .perfect-match-subtitle {
        font-size: 1.125rem;
    }
    
    .category-card-modern {
        height: 260px;
    }
    
    .category-image-modern {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .perfect-match-section {
        padding: 3rem 0;
    }
    
    .perfect-match-title {
        font-size: 2.25rem;
    }
    
    .perfect-match-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .category-card-modern {
        height: 240px;
        margin-bottom: 1.5rem;
    }
    
    .category-image-modern {
        height: 160px;
    }
    
    .category-text-modern {
        padding: 1.25rem 1rem;
    }
    
    .category-text-modern h5 {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .perfect-match-section .container {
        padding: 0 15px;
    }
    
    .perfect-match-section .row {
        margin: 0 -5px;
    }
    
    .perfect-match-section .col-6 {
        padding: 0 5px;
    }
    
    .perfect-match-title {
        font-size: 2rem;
    }
    
    .perfect-match-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .category-card-modern {
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .category-image-modern {
        height: 140px;
    }
    
    .category-text-modern {
        padding: 1rem 0.75rem;
    }
    
    .category-text-modern h5 {
        font-size: 0.8rem;
    }
}
