/* Service Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--card-bg-light);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Coin Shimmer Effect on Hover (Stops instantly when hover ends) */


.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    pointer-events: none;
    z-index: 10;
}

/* Animate only while hovering */
.service-card:hover::before {
    transform: rotate(45deg) translateX(100%);
    transition: transform 0.6s ease;
}


/* Carousel with Rounded Corners */
.carousel-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 0; /* Remove border radius from container */
    margin: 0.75rem; /* Add margin for spacing */
    margin-bottom: 0;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Image with All Corners Rounded */
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem; /* All corners rounded */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(118, 180, 254, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    font-weight: bold;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    z-index: 5;
}

.service-card:hover .carousel-button {
    opacity: 1;
}

.carousel-button:hover {
    background: rgb(69, 203, 252);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.service-card:hover .carousel-dots {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 1rem 1rem 0.75rem 1rem;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    margin-top: 0;
    font-weight: 700;
    transition: transform 0.3s ease;
    line-height: 1.3;
}

.service-card:hover .card-title {
    transform: translateY(-2px);
}

.short-description {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.long-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.long-description.expanded {
    max-height: 500px;
    opacity: 1;
}

.long-description-content {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.5;
    font-size: 0.9rem;
}

.long-description.expanded .long-description-content {
    transform: translateY(0);
    opacity: 1;
}

.service-list ul {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.highlight {
    color: var(--primary-color);
    font-weight: 550;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.75rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.long-description.expanded .price {
    transform: translateY(0);
    opacity: 1;
}

/* Location and Experience */
.service-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0.75rem 0;
    padding: 0;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.meta-item:hover {
    background-color: #f1f3f4;
    border-color: #e8277cd5;
    box-shadow: 0 2px 6px rgba(232, 39, 124, 0.12);
}

.meta-icon {
    width: 15px;
    height: 15px;
    fill: #666;
    flex-shrink: 0;
    transition: fill 0.3s ease;
}

.meta-item:hover .meta-icon {
    fill: #e8277cd5;
}

.meta-text {
    font-size: 0.8rem;
    color: #444;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.meta-item:hover .meta-text {
    color: #e8277cd5;
}

/* Facilities */
.facilities-container {
    margin: 0.75rem 0;
    padding: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    border-left: 3px solid #475569;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.facilities-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.facilities-icon {
    color: #475569;
    flex-shrink: 0;
}

.facilities-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.facilities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.facility-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.facility-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.tag-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.facility-tag:nth-child(2n) {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 3px 6px rgba(99, 102, 241, 0.25), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.facility-tag:nth-child(2n):hover {
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3), 0 6px 6px rgba(0, 0, 0, 0.2);
}

.facility-tag:nth-child(3n) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 3px 6px rgba(220, 38, 38, 0.25), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.facility-tag:nth-child(3n):hover {
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3), 0 6px 6px rgba(0, 0, 0, 0.2);
}

.facility-tag:nth-child(4n) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 3px 6px rgba(5, 150, 105, 0.25), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.facility-tag:nth-child(4n):hover {
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3), 0 6px 6px rgba(0, 0, 0, 0.2);
}

.facility-tag:nth-child(5n) {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    box-shadow: 0 3px 6px rgba(202, 138, 4, 0.25), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.facility-tag:nth-child(5n):hover {
    box-shadow: 0 10px 20px rgba(202, 138, 4, 0.3), 0 6px 6px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.facility-tag {
    animation: fadeInUp 0.4s ease forwards;
    position: relative;
    overflow: hidden;
}

.facility-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
}

/* Buttons */
.button-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0 0 0.75rem 0;
}

.btn {
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover .whatsapp-icon {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-text {
    transition: all 0.3s ease;
}

.btn-primary:hover .btn-text {
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    flex: 1;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.arrow-icon {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.rotate-up {
    transform: rotate(180deg);
}

.rotate-down {
    transform: rotate(0deg);
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-style: italic;
    background: var(--card-bg-light);
    border-radius: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.no-results h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.category-section-header {
    margin: 1rem 0 1.5rem;
    padding: 0.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.category-section-header h2 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-weight: 600;
}

.category-section-header h2::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    margin-left: 0.5rem;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.category-section-header p {
    color: var(--text-secondary);
    font-size: 0.6rem;
    line-height: 1.6;
}

.service {
    font-family: 'Poppins', 'Noto Sans Gujarati', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    letter-spacing: -0.02em;
}

.service::before {
    content: '✦✦✦';
    position: absolute;
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    color: #805ad5;
    font-size: 1.2rem;
    opacity: 0.7;
}

.service::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #805ad5, #d69e2e, #38b2ac);
    border-radius: 2px;
}

.service.traditional {
    font-family: 'Crimson Text', 'Noto Sans Gujarati', serif;
    color: #744210;
    text-shadow: 1px 1px 2px rgba(116, 66, 16, 0.1);
}

.service.traditional::before {
    content: '🕉';
    font-size: 1rem;
    color: #d69e2e;
}

.service.traditional::after {
    background: linear-gradient(90deg, #d69e2e, #c05621, #d69e2e);
    height: 2px;
    width: 100px;
}

.service.modern {
    font-family: 'Inter', 'Noto Sans Gujarati', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service.modern::before {
    content: '◆';
    color: #667eea;
    font-size: 1rem;
}

.service.modern::after {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -11;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(236, 72, 153, 0.2) 0%,
        rgba(147, 51, 234, 0.2) 50%,
        rgba(59, 130, 246, 0.2) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at 30% 40%, 
            rgba(236, 72, 153, 0.15) 0%, 
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 60%, 
            rgba(59, 130, 246, 0.15) 0%, 
            transparent 50%
        );
    z-index: 2;
    pointer-events: none;
}

.bg-image.active {
    opacity: 0.5;
}

.bg-image:nth-child(1) {
    background-image: url('img/mehndi1.jpg');
}

.bg-image:nth-child(2) {
    background-image: url('img/slide2.jpg');
}

.bg-image:nth-child(3) {
    background-image: url('img/mehndi3.jpg');
}

.bg-image:nth-child(4) {
    background-image: url('img/mehndi2.jpg');
}

.bg-image:nth-child(5) {
    background-image: url('img/parlour1.jpg');
}

.bg-image:nth-child(6) {
    background-image: url('img/parlour2.jpg');
}

.bg-image:nth-child(7) {
    background-image: url('img/parlour3.jpg');
}

.bg-image:nth-child(8) {
    background-image: url('img/parlour4.jpg');
}

.bg-image.corner-highlights::before {
    background: 
        radial-gradient(
            circle at 0% 0%, 
            rgba(236, 72, 153, 0.25) 0%, 
            transparent 40%
        ),
        radial-gradient(
            circle at 100% 100%, 
            rgba(59, 130, 246, 0.25) 0%, 
            transparent 40%
        );
}

@media (max-width: 640px) {
    .category-tabs,
    .subcategory-tabs {
        padding: 0.5rem 0 1rem;
        gap: 0.5rem;
        scroll-padding: 0 1rem;
    }
    
    .category-tab {
        min-width: 90px;
        padding: 0.625rem 0.875rem;
        border-radius: 0.75rem;
    }
    
    .subcategory-tab {
        min-width: 85px;
        width: 85px;
        height: 95px;
        padding: 8px;
        border-radius: 12px;
    }
    
    .category-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.375rem;
    }
    
    .category-icon img {
        width: 36px;
        height: 36px;
    }
    
    .subcategory-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }
    
    .subcategory-icon img {
        width: 30px;
        height: 30px;
    }
    
    .category-name,
    .subcategory-name {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .category-tab::after,
    .subcategory-tab::after {
        bottom: -6px;
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 200px;
        margin: 0.5rem;
    }
    
    .card-title {
        font-size: 1.15rem;
    }
    
    .price {
        font-size: 1.15rem;
    }
    
    .subcategory-tab {
        width: 90px;
        height: 100px;
        padding: 10px;
    }
    
    .subcategory-icon {
        width: 32px;
        height: 32px;
    }
    
    .subcategory-icon img {
        width: 32px;
        height: 32px;
    }
    
    .facilities-container {
        padding: 8px;
        margin: 0.5rem 0;
    }
    
    .facilities-title {
        font-size: 0.75rem;
    }
    
    .facility-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

@media (max-width: 375px) {
    .subcategory-tab {
        width: 80px;
        height: 90px;
        padding: 6px;
    }
    
    .subcategory-icon {
        width: 28px;
        height: 28px;
    }
    
    .subcategory-icon img {
        width: 28px;
        height: 28px;
    }
    
    .category-name,
    .subcategory-name {
        font-size: 0.65rem;
    }
}

@media (min-width: 480px) {
    .service-meta {
        justify-content: flex-start;
        gap: 6px 24px;
    }
}

@media (min-width: 768px) {
    .service-meta {
        gap: 6px 32px;
    }
}
