/* Screen Reader Only - For SEO H1 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Custom Animations */
@keyframes pulseSlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.3s;
}

/* Tap Animation for Counter */
@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.pop-animation {
    animation: pop 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Bead Styles */
.mala-bead {
    transition: all 0.3s ease;
    fill: transparent;
    stroke: #D6D3D1;
    /* stone-300 */
    stroke-width: 1.5;
}

.mala-bead.completed {
    fill: #FFCC99;
    /* saffron-light */
    stroke: #FF9933;
    /* saffron */
    stroke-width: 0;
}

.mala-bead.active {
    fill: #FF9933;
    /* saffron */
    filter: drop-shadow(0 0 4px #FF9933);
    r: 5;
    /* Slightly larger */
}

/* Round Complete Glow */
@keyframes holyGlow {
    0% {
        filter: drop-shadow(0 0 0px transparent);
    }

    50% {
        filter: drop-shadow(0 0 15px #FF9933);
        stroke: #FF9933;
    }

    100% {
        filter: drop-shadow(0 0 0px transparent);
    }
}

.holy-glow {
    animation: holyGlow 1.5s ease-in-out;
}

/* Floating Text Animations - Random Directions */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -30px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120px) scale(1.2);
    }
}

@keyframes floatDown {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, 30px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 120px) scale(1.2);
    }
}

@keyframes floatLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(calc(-50% - 80px), 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% - 150px), 0) scale(1.2);
    }
}

@keyframes floatRight {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(calc(-50% + 80px), 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + 150px), 0) scale(1.2);
    }
}

@keyframes floatUpLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(calc(-50% - 60px), -60px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% - 120px), -120px) scale(1.2);
    }
}

@keyframes floatUpRight {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(calc(-50% + 60px), -60px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + 120px), -120px) scale(1.2);
    }
}

@keyframes floatDownLeft {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(calc(-50% - 60px), 60px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% - 120px), 120px) scale(1.2);
    }
}

@keyframes floatDownRight {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    30% {
        opacity: 1;
        transform: translate(calc(-50% + 60px), 60px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + 120px), 120px) scale(1.2);
    }
}

.radha-float {
    position: absolute;
    pointer-events: none;
    font-family: 'Noto Serif Devanagari', serif;
    color: #FF9933;
    font-size: 2rem;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(255, 153, 51, 0.1);
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.radha-float.dir-up {
    animation-name: floatUp;
}

.radha-float.dir-down {
    animation-name: floatDown;
}

.radha-float.dir-left {
    animation-name: floatLeft;
}

.radha-float.dir-right {
    animation-name: floatRight;
}

.radha-float.dir-up-left {
    animation-name: floatUpLeft;
}

.radha-float.dir-up-right {
    animation-name: floatUpRight;
}

.radha-float.dir-down-left {
    animation-name: floatDownLeft;
}

.radha-float.dir-down-right {
    animation-name: floatDownRight;
}


/* Prevent double-tap zoom on iOS */
body {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Settings Modal Transitions */
#settings-modal.flex {
    display: flex;
}

#reset-modal.flex {
    display: flex;
}

/* Navigation Styles */
.nav-link {
    position: relative;
}

.nav-link:hover {
    text-decoration: none;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #FF9933;
    transition: width 0.2s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}