/* Mobile-Optimized Styles */
@media (max-width: 768px) {
    /* Ensure proper spacing for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile button improvements */
    button, .btn {
        min-height: 44px; /* iOS touch target size */
        padding: 12px 16px;
        font-size: 14px;
        line-height: 1.2;
    }

    /* Icon spacing for mobile */
    .fas, .fab, .far {
        flex-shrink: 0;
    }

    /* Prevent text overflow on mobile */
    .break-words {
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    /* Mobile-specific flexbox improvements */
    .flex-mobile-col {
        flex-direction: column;
    }

    .items-center-mobile {
        align-items: center;
    }

    .justify-center-mobile {
        justify-content: center;
    }

    /* Comprehensive mobile body fixes */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    html {
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    * {
        box-sizing: border-box !important;
    }

    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Prevent any element from exceeding viewport width */
    * {
        max-width: 100vw !important;
    }

    /* Fix for any absolute positioned elements */
    .absolute {
        max-width: calc(100vw - 2rem) !important;
        left: 1rem !important;
        right: 1rem !important;
    }

    /* Mobile-friendly touch targets */
    .touch-target {
        min-width: 44px;
        min-height: 44px;
    }

    /* Responsive text sizing */
    .text-responsive {
        font-size: clamp(14px, 4vw, 18px);
    }

    /* Mobile card improvements */
    .card-mobile {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 12px;
    }

    /* Mobile grid improvements */
    .grid-mobile-1 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Improved mobile animations */
    .animate-mobile-friendly {
        animation-duration: 0.3s;
        animation-timing-function: ease-out;
    }

    /* Enhanced Footer mobile fixes */
    footer {
        overflow-x: hidden;
    }

    footer .container {
        padding: 1rem !important;
        max-width: 100% !important;
    }

    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Brand section mobile fixes */
    footer .flex.items-center {
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    footer .w-12.h-12 {
        width: 3rem !important;
        height: 3rem !important;
        margin: 0 auto 0.75rem auto !important;
    }

    /* Social icons mobile fixes */
    footer .flex.space-x-4 {
        justify-content: center !important;
        gap: 1rem !important;
        flex-wrap: wrap !important;
        margin-top: 1rem !important;
    }

    footer .w-10.h-10 {
        width: 2.5rem !important;
        height: 2.5rem !important;
        flex-shrink: 0 !important;
    }

    /* Services list mobile fixes */
    footer ul {
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    footer ul li {
        margin-bottom: 0.75rem !important;
        padding: 0.5rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }

    /* Payment methods mobile fixes */
    footer .grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    footer .bg-gradient-to-r {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    /* Contact info mobile fixes */
    footer .flex.items-start {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Text size fixes for mobile */
    footer .text-sm {
        font-size: 12px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    footer .text-xs {
        font-size: 11px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    footer .text-lg {
        font-size: 16px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    /* Bottom bar mobile fixes */
    footer .border-t {
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }

    footer .border-t .flex {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
        align-items: center !important;
    }

    /* Quick links mobile fixes */
    footer .flex.flex-wrap {
        justify-content: center !important;
        gap: 0.75rem !important;
        padding: 0 1rem !important;
        text-align: center !important;
    }

    footer .flex.flex-wrap a {
        display: block !important;
        padding: 0.5rem !important;
        white-space: nowrap !important;
        font-size: 11px !important;
    }

    /* Security badges mobile fixes */
    footer .flex.items-center.justify-center {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
    }

    footer .flex.items-center.bg-green-600\/20,
    footer .flex.items-center.bg-blue-600\/20 {
        justify-content: center !important;
        padding: 0.5rem 1rem !important;
        margin: 0.25rem !important;
        white-space: nowrap !important;
        font-size: 10px !important;
    }

    /* Contact section mobile fixes */
    .contact-cards {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    /* Testimonials mobile fixes */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    /* Hero section mobile fixes */
    .hero-section .grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding: 0 1rem;
    }

    .hero-section .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: flex-start !important;
    }

    /* Force remove any top spacing from hero content */
    .hero-section .grid {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-section .text-center {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-section .relative.mb-6 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Enhanced countdown timer mobile fixes */
    #countdown {
        padding: 1rem !important;
        margin: 0 0.5rem !important;
    }

    #countdown .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .countdown-card {
        padding: 0.75rem !important;
        min-height: auto !important;
    }

    .countdown-number {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }

    .countdown-label {
        font-size: 0.6rem !important;
        margin-top: 0.25rem !important;
    }

    /* Pricing/Seva packages mobile fixes */
    .seva-packages {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .seva-packages > div {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Mobile fixes for seva package cards */
    .seva-packages .bg-gradient-to-b {
        margin: 0 !important;
        padding: 1rem !important;
        border-radius: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile fixes for seva package headers */
    .seva-packages .bg-gradient-to-br {
        padding: 1rem !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile fixes for seva package content */
    .seva-packages .p-6 {
        padding: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile fixes for seva package titles */
    .seva-packages .text-lg {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }

    /* Mobile fixes for seva package prices */
    .seva-packages .text-3xl {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }

    /* Mobile fixes for seva package descriptions */
    .seva-packages .text-sm {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }

    /* Mobile fixes for seva package buttons */
    .seva-packages .w-full {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        margin-top: 1rem !important;
        text-align: center !important;
        word-wrap: break-word !important;
    }

    /* Mobile fixes for seva package features list */
    .seva-packages .space-y-3 {
        margin-bottom: 1rem !important;
    }

    .seva-packages .flex.items-start {
        align-items: flex-start !important;
        margin-bottom: 0.75rem !important;
        padding: 0.25rem !important;
    }

    .seva-packages .flex.items-start span {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        text-align: left !important;
    }

    /* Special mobile fixes for "सबसे लोकप्रिय" badge */
    .seva-packages .absolute.-top-2 {
        position: absolute !important;
        top: -0.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        width: auto !important;
        max-width: 90% !important;
    }

    .seva-packages .absolute.-top-2 span {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        padding: 0.375rem 0.75rem !important;
        white-space: nowrap !important;
        border-radius: 9999px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        min-width: auto !important;
    }

    .seva-packages .absolute.-top-2 span i {
        margin-right: 0.25rem !important;
        font-size: 0.6rem !important;
    }

    /* Mobile fixes for yajman package special styling */
    .seva-packages .border-3 {
        border-width: 2px !important;
        position: relative !important;
        overflow: visible !important;
    }

    .seva-packages .scale-105 {
        transform: scale(1) !important;
    }

    .seva-packages .hover\:scale-110:hover {
        transform: scale(1.02) !important;
    }

    /* Mobile fixes for package radio buttons */
    .seva-packages .flex.items-center.p-2 {
        padding: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 0.5rem !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .seva-packages .flex.items-center.p-2 label {
        font-size: 0.9rem !important;
        line-height: 1.3 !important;
        margin-left: 0.5rem !important;
        word-wrap: break-word !important;
        text-align: left !important;
    }

    .seva-packages .flex.items-center.p-2 .block {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        margin-top: 0.25rem !important;
        word-wrap: break-word !important;
    }

    /* Mobile fixes for check icons */
    .seva-packages .w-5.h-5 {
        width: 1rem !important;
        height: 1rem !important;
        flex-shrink: 0 !important;
        margin-right: 0.5rem !important;
        margin-top: 0.125rem !important;
    }

    .seva-packages .text-xs {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin-top: 0.25rem !important;
        word-wrap: break-word !important;
    }

    /* FAQ mobile fixes */
    .faq-button {
        padding: 1rem;
        font-size: 14px;
        line-height: 1.3;
        text-align: left;
    }

    .faq-button h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
    }

    /* Form mobile fixes */
    #registrationForm {
        padding: 1rem;
        margin: 0;
    }

    #registrationForm .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    #registrationForm input,
    #registrationForm select,
    #registrationForm textarea {
        width: 100% !important;
        font-size: 14px !important;
        padding: 0.75rem !important;
    }

    /* Button mobile fixes */
    .btn-mobile,
    button,
    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 14px;
        line-height: 1.2;
        margin: 0.25rem 0;
        word-wrap: break-word;
        text-align: center;
    }

    /* Section spacing mobile fixes */
    .section {
        padding: 2rem 0 !important;
    }

    .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Text overflow and wrapping fixes */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    p, span, div {
        word-wrap: break-word !important;
        line-height: 1.4 !important;
    }

    /* Image mobile fixes */
    img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    /* Card mobile fixes */
    .bg-white,
    .bg-surface,
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        margin: 0.5rem !important;
        padding: 1rem !important;
        border-radius: 1rem !important;
        max-width: calc(100% - 1rem) !important;
    }

    /* List mobile fixes */
    ul, ol {
        padding-left: 1rem !important;
        margin: 0.5rem 0 !important;
    }

    li {
        margin-bottom: 0.5rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
    }

    /* Flex mobile fixes */
    .flex {
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    /* Grid mobile fixes */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Text mobile fixes */
    .text-4xl {
        font-size: 1.875rem !important; /* 30px */
    }

    .text-3xl {
        font-size: 1.5rem !important; /* 24px */
    }

    .text-2xl {
        font-size: 1.25rem !important; /* 20px */
    }

    .text-xl {
        font-size: 1.125rem !important; /* 18px */
    }

    .text-lg {
        font-size: 1rem !important; /* 16px */
    }

    /* Padding mobile fixes */
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-12 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .p-8 {
        padding: 1.5rem !important;
    }

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

    /* Margin mobile fixes */
    .mb-12 {
        margin-bottom: 2rem !important;
    }

    .mb-8 {
        margin-bottom: 1.5rem !important;
    }

    .mb-6 {
        margin-bottom: 1rem !important;
    }

    /* Image mobile fixes */
    .w-16 {
        width: 3rem !important;
    }

    .h-16 {
        height: 3rem !important;
    }

    .w-12 {
        width: 2.5rem !important;
    }

    .h-12 {
        height: 2.5rem !important;
    }
}

/* Cosmic Shiva background effects and text shadow */
.divine-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='42' viewBox='0 0 42 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M0 0h42v42H0z'/%3E%3Cpath d='M3 3h36v36H3z' stroke='%23D4AF37' stroke-width='2' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

/* Enhanced cosmic background animation */
@keyframes divine-pattern-move {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Mobile-specific cosmic effects */
@media (max-width: 768px) {
    .divine-pattern {
        background-size: 30px 30px;
    }

    .text-shadow {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .text-shadow-lg {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    }
}

.animate-reverse-spin {
            animation: reverseSpin 30s linear infinite;
        }

        /* Enhanced Animation delay classes for countdown */
        .animation-delay-300 {
            animation-delay: 0.3s;
        }

        .animation-delay-500 {
            animation-delay: 0.5s;
        }

        .animation-delay-600 {
            animation-delay: 0.6s;
        }

        .animation-delay-700 {
            animation-delay: 0.7s;
        }

        .animation-delay-900 {
            animation-delay: 0.9s;
        }

        .animation-delay-1000 {
            animation-delay: 1s;
        }

        .animation-delay-1100 {
            animation-delay: 1.1s;
        }

        .animation-delay-1200 {
            animation-delay: 1.2s;
        }

        .animation-delay-1500 {
            animation-delay: 1.5s;
        }

        .animation-delay-2000 {
            animation-delay: 2s;
        }

        .animation-delay-2500 {
            animation-delay: 2.5s;
        }

        .animation-delay-3000 {
            animation-delay: 3s;
        }

        /* Enhanced countdown timer specific styles */
        .transform-gpu {
            transform: translateZ(0);
            backface-visibility: hidden;
            perspective: 1000px;
        }

        /* Enhanced hover effects for countdown cards */
        @keyframes countdown-glow {
            0%, 100% {
                box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
            }
            50% {
                box-shadow: 0 0 30px rgba(255, 165, 0, 0.6), 0 0 40px rgba(255, 69, 0, 0.4);
            }
        }

        .countdown-card:hover {
            animation: countdown-glow 2s ease-in-out infinite;
        }

        /* Better drop shadow for countdown numbers */
        .drop-shadow-2xl {
            filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
        }

        /* Improved gradient border animation */
        @keyframes gradient-border {
            0%, 100% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
        }

        .border-gradient {
            background: linear-gradient(45deg, #fbbf24, #f97316, #ef4444, #8b5cf6, #3b82f6);
            background-size: 400% 400%;
            animation: gradient-border 3s ease infinite;
        }

        /* Enhanced mobile responsiveness for countdown */
        @media (max-width: 640px) {
            .countdown-card {
                padding: 0.75rem;
                border-radius: 1rem;
            }

            .countdown-number {
                font-size: 1.5rem;
                line-height: 1.2;
            }

            .countdown-label {
                font-size: 0.6rem;
                margin-top: 0.25rem;
            }

            /* Reduce animation intensity on mobile for performance */
            .animate-magical-particle {
                animation-duration: 6s;
            }

            .animate-float {
                animation-duration: 5s;
            }
        }

        /* Improved backdrop blur support */
        @supports (backdrop-filter: blur(10px)) {
            .backdrop-blur-xl {
                backdrop-filter: blur(16px) saturate(180%);
            }
            
            .backdrop-blur-lg {
                backdrop-filter: blur(12px) saturate(160%);
            }
        }

        /* Fallback for browsers without backdrop-filter */
        @supports not (backdrop-filter: blur(10px)) {
            .backdrop-blur-xl {
                background-color: rgba(0, 0, 0, 0.6);
            }
            
            .backdrop-blur-lg {
                background-color: rgba(0, 0, 0, 0.4);
            }
        }