/* ==========================================================
   POOJASERVICE HOMEPAGE — PREMIUM ANIMATION LAYER
   Visual-only enhancement. Existing HTML and functionality
   remain unchanged.
   ========================================================== */

:root {
    --ps-home-maroon: #781731;
    --ps-home-maroon-dark: #4f1022;
    --ps-home-gold: #b88938;
    --ps-home-cream: #fffaf0;
    --ps-home-glow: rgba(184, 137, 56, .22);
}

/* Smooth section presentation */
.hero-section,
.pandit-section,
.homepage-feature-shortcuts,
.pooja-samagri-section,
.about-us-section,
.customer-experience,
.testimonials-section,
.contact-section {
    position: relative;
    isolation: isolate;
}

/* Hero banner — gentle cinematic movement */
.hero-section .carousel-item img,
.hero-section > img {
    animation: psHomeHeroZoom 13s ease-in-out infinite alternate;
    transform-origin: center;
}

@keyframes psHomeHeroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.035); }
}

/* Diya separator glow */
.hero-diya-icon {
    animation: psHomeDiyaGlow 2.8s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes psHomeDiyaGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 2px 3px rgba(120, 23, 49, .15));
    }
    50% {
        transform: translateY(-4px) scale(1.08);
        filter: drop-shadow(0 0 10px rgba(184, 137, 56, .65));
    }
}

/* Premium CTA buttons */
.btn-spiritual-hero {
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease,
                filter .35s ease;
}

.btn-spiritual-hero::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -75%;
    width: 42%;
    height: 220%;
    transform: rotate(25deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.34),
        transparent
    );
    transition: left .7s ease;
    pointer-events: none;
}

.btn-spiritual-hero:hover {
    transform: translateY(-4px);
    filter: saturate(1.08);
    box-shadow: 0 12px 26px rgba(120, 23, 49, .22);
}

.btn-spiritual-hero:hover::after {
    left: 140%;
}

/* Trust strip */
.hero-trust-strip {
    box-shadow: 0 8px 24px rgba(80, 35, 30, .06);
    animation: psHomeSoftFloat 5s ease-in-out infinite;
}

.hero-trust-item i {
    transition: transform .3s ease, color .3s ease;
}

.hero-trust-item:hover i {
    transform: translateY(-3px) scale(1.15);
    color: var(--ps-home-gold);
}

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

/* Section headings — subtle gold underline movement */
.pandit-heading-divider,
.samagri-heading-divider {
    position: relative;
    overflow: hidden;
}

.pandit-heading-divider::after,
.samagri-heading-divider::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    background: rgba(255,255,255,.75);
    transform: translateX(-130%);
    animation: psHomeGoldSweep 4s ease-in-out infinite;
}

@keyframes psHomeGoldSweep {
    0%, 35% { transform: translateX(-130%); }
    75%, 100% { transform: translateX(240%); }
}

.pandit-heading-ornament,
.samagri-heading-cart {
    animation: psHomeOrnament 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes psHomeOrnament {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50%      { transform: rotate(5deg) scale(1.08); }
}

/* Pandit cards */
.pandit-card {
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease,
                border-color .35s ease;
    border: 1px solid rgba(184, 137, 56, .12);
}

.pandit-card:hover {
    transform: translateY(-7px);
    border-color: rgba(184, 137, 56, .55);
    box-shadow: 0 16px 32px rgba(80, 25, 42, .13);
}

.pandit-img {
    transition: transform .45s ease, filter .45s ease;
}

.pandit-card:hover .pandit-img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

/* Search focus */
.pandit-section .search-box #panditSearch.form-control {
    transition: box-shadow .3s ease, border-color .3s ease;
}

.pandit-section .search-box #panditSearch.form-control:focus {
    box-shadow: 0 0 0 4px rgba(184, 137, 56, .15),
                0 8px 24px rgba(120, 23, 49, .10);
}

/* Feature shortcut strip */
.homepage-feature-shortcuts .shortcut-strip {
    box-shadow: 0 10px 28px rgba(80, 35, 30, .055);
    transition: box-shadow .35s ease, border-color .35s ease;
}

.homepage-feature-shortcuts .shortcut-item {
    transition: background .3s ease, transform .3s ease;
}

.homepage-feature-shortcuts .shortcut-item:hover {
    transform: translateY(-3px);
}

.homepage-feature-shortcuts .shortcut-icon {
    transition: transform .35s ease, filter .35s ease;
}

.homepage-feature-shortcuts .shortcut-item:hover .shortcut-icon {
    transform: translateY(-4px) scale(1.12);
    filter: drop-shadow(0 4px 5px rgba(184, 137, 56, .25));
}

/* Pooja samagri cards */
.pooja-card {
    position: relative;
    border: 1px solid rgba(184, 137, 56, .14);
    transition: transform .35s ease, box-shadow .35s ease,
                border-color .35s ease;
}

.pooja-card:hover {
    transform: translateY(-7px);
    border-color: rgba(184, 137, 56, .55);
    box-shadow: 0 16px 32px rgba(80, 25, 42, .12);
}

.pooja-img,
.samagri-item img {
    transition: transform .4s ease, box-shadow .4s ease;
}

.pooja-card:hover .pooja-img {
    transform: scale(1.07);
    box-shadow: 0 8px 18px rgba(184, 137, 56, .2);
}

.pooja-card .samagri-item img {
    transition: transform .3s ease;
}

.pooja-card .samagri-item:hover img {
    transform: scale(1.1) rotate(-4deg);
}

/* About and experience cards */
.about-us-section .feature-card,
.customer-experience .experience-card {
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease,
                border-color .35s ease;
}

.about-us-section .feature-card:hover,
.customer-experience .experience-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(80, 25, 42, .12);
}

.about-us-section .feature-card img {
    transition: transform .45s ease, filter .45s ease;
}

.about-us-section .feature-card:hover img {
    transform: scale(1.07);
    filter: drop-shadow(0 7px 8px rgba(184, 137, 56, .2));
}

.customer-experience .icon-box {
    transition: transform .35s ease, box-shadow .35s ease;
}

.customer-experience .experience-card:hover .icon-box {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 0 8px 20px rgba(184, 137, 56, .2);
}

/* Testimonials */
.testi-card {
    transition: transform .35s ease, box-shadow .35s ease,
                border-color .35s ease;
}

.testi-card:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 137, 56, .55);
    box-shadow: 0 14px 28px rgba(80, 25, 42, .10);
}

.testi-avatar {
    transition: transform .35s ease, box-shadow .35s ease;
}

.testi-card:hover .testi-avatar {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(184, 137, 56, .13);
}

.testi-arrow {
    transition: transform .25s ease, background .25s ease,
                color .25s ease;
}

.testi-arrow:not(:disabled):hover {
    transform: scale(1.08);
}

/* Contact cards and form surface */
.contact-section .info-card,
.contact-section .form-card,
.contact-section .map-card {
    transition: transform .35s ease, box-shadow .35s ease,
                border-color .35s ease;
}

.contact-section .info-card:hover,
.contact-section .form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(80, 25, 42, .10);
}

.contact-section .info-icon {
    transition: transform .3s ease, box-shadow .3s ease;
}

.contact-section .info-card:hover .info-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 0 0 5px rgba(184, 137, 56, .12);
}

/* Gentle visual entrance for homepage content */
@keyframes psHomeRiseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pandit-section .pandit-heading-design,
.pooja-samagri-section .samagri-heading-design,
.about-us-section .section-header,
.customer-experience .section-header,
.testi-head,
.contact-section .contact-hero {
    animation: psHomeRiseIn .8s ease both;
}

/* Keep motion comfortable and accessible */
@media (prefers-reduced-motion: reduce) {
    .hero-section .carousel-item img,
    .hero-section > img,
    .hero-diya-icon,
    .hero-trust-strip,
    .pandit-heading-divider::after,
    .samagri-heading-divider::after,
    .pandit-heading-ornament,
    .samagri-heading-cart,
    .pandit-section .pandit-heading-design,
    .pooja-samagri-section .samagri-heading-design,
    .about-us-section .section-header,
    .customer-experience .section-header,
    .testi-head,
    .contact-section .contact-hero {
        animation: none !important;
    }

    .btn-spiritual-hero,
    .pandit-card,
    .pandit-img,
    .pooja-card,
    .pooja-img,
    .samagri-item img,
    .feature-card,
    .experience-card,
    .testi-card,
    .testi-avatar,
    .testi-arrow,
    .info-card,
    .form-card,
    .map-card {
        transition: none !important;
    }
}
