/* Custom CSS for Mannur Kaimakunnathu Kavu Temple */

:root {
    --temple-maroon: #7B1113;
    --temple-gold: #D4AF37;
    --ivory: #FFF8E7;
    --dark-wood: #2C1B15;
    --text-color: #2A2A2A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background: #fff;
}

img {
    display: block;
}

.font-cinzel {
    font-family: 'Cinzel', serif;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Local utilities for custom temple colors used with Tailwind CDN */
.bg-temple-maroon {
    background-color: var(--temple-maroon);
}

.bg-temple-gold {
    background-color: var(--temple-gold);
}

.bg-temple-gold\/10 {
    background-color: rgba(212, 175, 55, 0.1);
}

.bg-temple-gold\/20 {
    background-color: rgba(212, 175, 55, 0.2);
}

.bg-ivory {
    background-color: var(--ivory);
}

.text-temple-maroon {
    color: var(--temple-maroon);
}

.text-temple-gold {
    color: var(--temple-gold);
}

.text-ivory {
    color: var(--ivory);
}

.border-temple-gold {
    border-color: var(--temple-gold);
}

.border-temple-maroon {
    border-color: var(--temple-maroon);
}

.hover\:bg-temple-maroon:hover {
    background-color: var(--temple-maroon);
}

.hover\:bg-temple-gold:hover {
    background-color: var(--temple-gold);
}

.hover\:text-temple-maroon:hover {
    color: var(--temple-maroon);
}

.hover\:text-temple-gold:hover {
    color: var(--temple-gold);
}

.hover\:border-temple-gold:hover {
    border-color: var(--temple-gold);
}

.focus\:ring-temple-gold:focus {
    --tw-ring-color: var(--temple-gold);
}

.from-temple-maroon {
    --tw-gradient-from: var(--temple-maroon) var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(123, 17, 19, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-temple-gold {
    --tw-gradient-from: var(--temple-gold) var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(212, 175, 55, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-ivory {
    --tw-gradient-from: var(--ivory) var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(255, 248, 231, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-temple-maroon {
    --tw-gradient-to: rgba(123, 17, 19, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--temple-maroon) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.via-temple-gold {
    --tw-gradient-to: rgba(212, 175, 55, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--temple-gold) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.to-temple-maroon {
    --tw-gradient-to: var(--temple-maroon) var(--tw-gradient-to-position);
}

.to-temple-maroon\/80 {
    --tw-gradient-to: rgba(123, 17, 19, 0.8) var(--tw-gradient-to-position);
}

/* Navigation */
#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--temple-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(44, 27, 21, 0.82), rgba(123, 17, 19, 0.56)),
        radial-gradient(circle at center, rgba(212, 175, 55, 0.12), transparent 55%);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover {
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}


/* Cards and decorative details */
.decorative-line {
    position: relative;
    text-align: center;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--temple-gold), transparent);
}

.decorative-line::before {
    right: calc(100% + 24px);
}

.decorative-line::after {
    left: calc(100% + 24px);
}

.service-card,
.deity-card,
.festival-card,
.gallery-item,
.testimonial-card,
.quick-access-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover,
.deity-card:hover,
.festival-card:hover,
.testimonial-card:hover,
.quick-access-card:hover {
    transform: translateY(-8px);
}

.service-card {
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.service-card:hover {
    border-color: var(--temple-gold);
    background: rgba(255, 255, 255, 0.15);
}

.deity-card,
.festival-card,
.testimonial-card,
.quick-access-card {
    border: 1px solid rgba(123, 17, 19, 0.08);
}

.deity-card:hover,
.festival-card:hover,
.testimonial-card:hover,
.quick-access-card:hover {
    box-shadow: 0 22px 46px rgba(123, 17, 19, 0.16);
}

.quick-access-card svg {
    fill: currentColor !important;
    opacity: 1 !important;
}

.quick-access-card svg.text-temple-gold {
    color: var(--temple-gold) !important;
}

.quick-access-card svg.text-white {
    color: #fff !important;
}

.quick-access-card .w-20.h-20 {
    display: flex !important;
    opacity: 1 !important;
}

.quick-access-card .w-20.h-20 svg {
    display: block !important;
    visibility: visible !important;
}

.lamp-glow {
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.45);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

/* Keep the About page readable if its reveal script is unavailable. */
body:has(img[src="assets/images/about.png"]) .fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#temple .fade-in,
#deities .fade-in,
#donations .fade-in {
    opacity: 1 !important;
}

#temple .fade-in *,
#deities .fade-in *,
#donations .fade-in * {
    opacity: 1 !important;
}

/* Gallery */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 17, 19, 0.68);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.86);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--temple-gold);
    color: var(--temple-maroon);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Forms */
.form-input {
    border: 1px solid rgba(123, 17, 19, 0.18);
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--temple-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Testimonials */
.testimonial-card svg {
    filter: drop-shadow(0 8px 18px rgba(212, 175, 55, 0.24));
}

/* Donations and temple section readability */
#temple h2,
#temple h3,
#temple p,
#donations h2,
#donations p,
#donations .font-cinzel {
    text-shadow: none !important;
}

#temple .fade-in {
    background: rgba(123, 17, 19, 0.03) !important;
    backdrop-filter: none !important;
}

#donations .fade-in {
    background: rgba(123, 17, 19, 0.03) !important;
    backdrop-filter: none !important;
}

/* Scroll to top */
#scrollToTop {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

#scrollToTop:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Footer */
.footer-link {
    display: inline-block;
}

.footer-link:hover {
    transform: translateX(3px);
}

/* Responsive refinements */
@media (max-width: 768px) {

    .decorative-line::before,
    .decorative-line::after {
        display: none;
    }

    .hero-bg img {
        height: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .quick-access-card:hover,
    .service-card:hover,
    .deity-card:hover,
    .festival-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Enhanced Navigation Responsiveness */
#mainNav {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #fff;
    background-image: none;
}

#mainNav.scrolled {
    box-shadow: 0 4px 16px rgba(123, 17, 19, 0.2);
    transform: translateY(0);
}

/* Desktop menu spacing optimization */
@media (min-width: 1280px) and (max-width: 1536px) {
    #mainNav ul.xl\:flex {
        gap: 0.75rem;
    }

    #mainNav .nav-link {
        font-size: 0.875rem;
    }
}

/* Mobile menu improvements */
.mobile-nav-link {
    transition: all 0.2s ease;
}

.mobile-nav-link:active {
    transform: scale(0.98);
}

/* Submenu icon rotation */
#aboutSubmenuIcon,
#servicesSubmenuIcon {
    transition: transform 0.3s ease;
}

/* Mobile submenu styling */
#aboutSubmenu,
#servicesSubmenu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#aboutSubmenu:not(.hidden),
#servicesSubmenu:not(.hidden) {
    max-height: 500px;
}

/* Smooth dropdown animation */
@media (min-width: 1280px) {
    .group:hover>ul {
        animation: slideDown 0.3s ease-out forwards;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo text responsiveness */
@media (max-width: 640px) {

    #siteName,
    #siteNameMobile {
        font-size: 0.875rem;
        line-height: 1.2;
    }
}

/* Language toggle button sizing */
#langToggle {
    min-width: 90px;
}

@media (min-width: 1536px) {
    #langToggle {
        min-width: 110px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Mobile menu slide animation */
#mobileMenu {
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 100vh;
    opacity: 1;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 1279px) {
    body {
        overflow-x: hidden;
    }

    #mobileMenu {
        width: 100%;
    }
}

/* Dropdown z-index fix */
.group>ul {
    z-index: 9999;
}

/* Better touch targets for mobile */
@media (max-width: 1279px) {

    .mobile-nav-link,
    .mobile-nav-link button {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Navbar shadow on scroll enhancement */
#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}


/* Temple Banner Section Styling */
.bg-gradient-to-r {
    background: linear-gradient(90deg,
            var(--ivory) 0%,
            #ffffff 20%,
            #ffffff 80%,
            var(--ivory) 100%);
}

/* Banner responsive height adjustments */
@media (max-width: 640px) {
    .temple-banner img {
        max-height: 80px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .temple-banner img {
        max-height: 96px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .temple-banner img {
        max-height: 112px;
    }
}

@media (min-width: 1280px) {
    .temple-banner img {
        max-height: 128px;
    }
}

/* Banner border enhancement */
.border-temple-gold {
    border-color: var(--temple-gold);
}

/* Smooth shadow for banner */
.temple-banner-section {
    box-shadow: 0 4px 6px -1px rgba(123, 17, 19, 0.1),
        0 2px 4px -1px rgba(123, 17, 19, 0.06);
}


/* Enhanced Mobile Responsiveness */

/* Ensure proper text scaling on mobile */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    /* Hero section adjustments */
    #home h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    #home .hero-content p {
        font-size: 1.125rem !important;
    }

    /* Section headings */
    h2.text-4xl,
    h2.text-5xl {
        font-size: 1.875rem !important;
    }

    h3.text-3xl {
        font-size: 1.5rem !important;
    }

    h3.text-2xl {
        font-size: 1.25rem !important;
    }

    /* Button text sizing */
    .btn-primary,
    .btn-secondary {
        font-size: 0.875rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* Card padding adjustments */
    .deity-card .p-8,
    .festival-card .p-10 {
        padding: 1.5rem !important;
    }

    /* Trustee cards */
    #trustees .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    #trustees .w-32 {
        width: 6rem !important;
        height: 6rem !important;
    }

    #trustees h3 {
        font-size: 0.875rem !important;
    }

    #trustees .p-6 {
        padding: 1rem !important;
    }

    /* Pooja and Prasadam cards */
    #pooja .grid,
    #prasadam .grid {
        grid-template-columns: 1fr !important;
    }

    /* Quick Access cards */
    .quick-access-card {
        margin-bottom: 1rem;
    }

    /* Footer adjustments */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    footer h3,
    footer h4 {
        font-size: 1.125rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
    #trustees .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #pooja .grid,
    #prasadam .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.container {
    max-width: 100%;
}

/* Touch-friendly buttons */
@media (hover: none) and (pointer: coarse) {

    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Image optimization for mobile */
@media (max-width: 640px) {
    img {
        max-width: 100%;
        height: auto;
    }

    /* Banner image */
    .temple-banner img {
        max-height: 60px !important;
    }

    /* Gallery images */
    .gallery-item {
        height: auto !important;
    }

    .gallery-item img {
        height: 250px !important;
        object-fit: cover;
    }
}

/* Navigation mobile menu */
@media (max-width: 1279px) {
    #mobileMenu {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

/* Form inputs mobile optimization */
@media (max-width: 640px) {
    .form-input {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
    }
}

/* Spacing adjustments for small screens */
@media (max-width: 640px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-20 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Ensure sticky nav works properly on mobile */
#mainNav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

/* Improved touch targets */
.nav-link,
.mobile-nav-link,
.footer-link {
    padding: 0.5rem;
}

/* Prevent text selection issues on touch devices */
@media (hover: none) {
    * {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
}


/* Hero Slider Styles */
.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-slide {
    transition: opacity 1s ease-in-out;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slider Dots */
.slider-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    opacity: 0.8 !important;
    transform: scale(1.2);
}

/* Hero content animation */
.hero-content {
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Support Styles */

/* Language elements visibility */
.lang-en,
.lang-ml,
.lang-ta,
.lang-hi,
.en-version,
.ml-version,
.ta-version,
.hi-version {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide by default */
.lang-en.hidden,
.lang-ml.hidden,
.lang-ta.hidden,
.lang-hi.hidden,
.en-version.hidden,
.ml-version.hidden,
.ta-version.hidden,
.hi-version.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

/* Language button styling */
.lang-btn,
.lang-btn-mobile {
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.lang-btn:active,
.lang-btn-mobile:active {
    transform: scale(0.95);
}

/* Language indicator checkmark */
.lang-indicator {
    animation: slideIn 0.2s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Language dropdown styling */
.group:hover>div[class*="shadow-xl rounded-lg"] {
    animation: dropdownAppear 0.25s ease-out forwards;
}

@keyframes dropdownAppear {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile language button group */
.space-y-2 .lang-btn-mobile {
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
}

/* Ensure proper text direction and font support */
html[lang="ta"],
html[lang="ml"],
html[lang="hi"] {
    font-family: 'Noto Sans', 'Poppins', sans-serif;
}

/* Language-specific font adjustments */
html[lang="ta"] body,
html[lang="ml"] body,
html[lang="hi"] body {
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* ── Centralized Temple Page Hero Banner Styles ── */
.temple-page-hero {
    position: relative;
    background: linear-gradient(135deg, #2C1B15 0%, #5c0d0f 40%, #7B1113 70%, #2C1B15 100%);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    overflow: hidden;
}

.temple-page-hero__flames {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 1;
}

.temple-page-hero__flames span {
    display: block;
    width: 3px;
    height: 60px;
    background: linear-gradient(to top, #D4AF37, transparent);
    border-radius: 50%;
    animation: flameRise 2s ease-in-out infinite alternate;
    opacity: 0.3;
}

.temple-page-hero__flames span:nth-child(2) {
    animation-delay: 0.3s;
    height: 45px;
}

.temple-page-hero__flames span:nth-child(3) {
    animation-delay: 0.6s;
    height: 70px;
}

.temple-page-hero__flames span:nth-child(4) {
    animation-delay: 0.9s;
    height: 40px;
}

.temple-page-hero__flames span:nth-child(5) {
    animation-delay: 1.2s;
    height: 55px;
}

@keyframes flameRise {
    from {
        transform: scaleY(0.7) translateY(10px);
        opacity: 0.2;
    }

    to {
        transform: scaleY(1.2) translateY(-4px);
        opacity: 0.5;
    }
}

.temple-page-hero__content {
    position: relative;
    z-index: 2;
}

.temple-page-hero__eyebrow {
    font-family: 'Cormorant Garamond', serif;
    color: #D4AF37;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.temple-page-hero__title {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.temple-page-hero__title--gold {
    color: #D4AF37;
}

.temple-page-hero__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #D4AF37;
    margin-bottom: 1.5rem;
}

.temple-page-hero__divider span {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #D4AF37);
}

.temple-page-hero__divider span:last-child {
    background: linear-gradient(to left, transparent, #D4AF37);
}

.temple-page-hero__subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.temple-page-hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.temple-page-hero__particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D4AF37;
    opacity: 0;
    animation: particleFly 6s ease-in infinite;
}

.temple-page-hero__particles span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.temple-page-hero__particles span:nth-child(2) {
    left: 25%;
    animation-delay: 1s;
    animation-duration: 7s;
}

.temple-page-hero__particles span:nth-child(3) {
    left: 45%;
    animation-delay: 2s;
    animation-duration: 5.5s;
}

.temple-page-hero__particles span:nth-child(4) {
    left: 60%;
    animation-delay: 0.5s;
    animation-duration: 6.5s;
}

.temple-page-hero__particles span:nth-child(5) {
    left: 75%;
    animation-delay: 1.5s;
    animation-duration: 5s;
}

.temple-page-hero__particles span:nth-child(6) {
    left: 88%;
    animation-delay: 2.5s;
    animation-duration: 7s;
}

.temple-page-hero__particles span:nth-child(7) {
    left: 5%;
    animation-delay: 3s;
    animation-duration: 6s;
}

.temple-page-hero__particles span:nth-child(8) {
    left: 92%;
    animation-delay: 0.8s;
    animation-duration: 5.5s;
}

@keyframes particleFly {
    0% {
        bottom: 10%;
        opacity: 0;
        transform: scale(1);
    }

    20% {
        opacity: 0.8;
    }

    100% {
        bottom: 90%;
        opacity: 0;
        transform: scale(0.3) translateX(20px);
    }
}

