/* Custom styles for Acharya Satvinder Ji Website */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

/* Custom Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Background Pattern */
.bg-pattern {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxjaXJjbGUgZmlsbD0iI2ZmZmZmZiIgZmlsbC1vcGFjaXR5PSIuMDMiIGN4PSIzMCIgY3k9IjMwIiByPSIxIi8+PC9nPjwvc3ZnPg==');
    opacity: 0.5;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #fcd34d, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
    .backdrop-blur-xl {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}

/* Razorpay Button Styling */
form button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* WhatsApp Button Animation */
.whatsapp-btn {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Video Container Aspect Ratio */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pricing Card Special Effects */
.pricing-card-glow {
    position: relative;
}

.pricing-card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(249, 115, 22, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card-glow:hover::before {
    opacity: 1;
}

/* Mobile Menu (if needed) */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: flex;
        flex-direction: column;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1b4b;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* Selection Color */
::selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: white;
}

::-moz-selection {
    background-color: rgba(251, 191, 36, 0.3);
    color: white;
}

/* Focus Styles */
a:focus, button:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Image Loading */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Text Balance */
.text-balance {
    text-wrap: balance;
}

/* Smooth Color Transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}