/* =========================================
   iGrroww.in | Premium Homepage Styles
   File: assets/css/index.css
========================================= */

/* =========================================
   1. CUSTOM SLEEK SCROLLBAR 
========================================= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #00C16A;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #049f59;
}

/* Base HTML Settings for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* =========================================
   2. GLOBAL BACKGROUND PATTERNS
========================================= */
/* Premium Dotted Grid Background for Main Body */
main, body {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -19px -19px;
}

/* Text Gradient Clipping Support (For Safari/Chrome) */
.bg-clip-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   3. THE 'ALIVE' AMBIENT BACKGROUND BLOBS
========================================= */
/* Ye blobs background mein dheere-dheere saans (breathe) lenge aur move honge */
@keyframes breathe {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.1) translate(25px, -25px); opacity: 0.7; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
}

.ambient-blob {
    animation: breathe 15s infinite ease-in-out;
}
.blob-2 {
    animation-delay: -5s;
    animation-duration: 20s;
}

/* =========================================
   4. FLOATING ANIMATIONS
========================================= */
/* Badges aur icons ke hawa me tairne (float) ka effect */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-badge {
    animation: float 4s ease-in-out infinite;
}

/* =========================================
   5. MAGICAL DUST (For Digital Invitations)
========================================= */
/* Wedding section ke background me taaro (stars/dust) jaisa effect */
.magical-dust {
    background-image: radial-gradient(rgba(255,255,255,0.3) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    animation: moveDust 60s linear infinite;
}

@keyframes moveDust {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

/* =========================================
   6. PREMIUM GLASS SHINE EFFECT
========================================= */
/* Pricing cards par hover karne par ek chamak (shine) left se right jayegi */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.15), rgba(255,255,255,0));
    transform: skewX(-25deg);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
    pointer-events: none;
}

.shine-effect:hover::before {
    left: 150%;
    transition-duration: 0.8s;
}

/* =========================================
   7. 3D PERSPECTIVE (Mobile Mockup Hover)
========================================= */
/* Demo image ko asli 3D feel dene ke liye */
.perspective-1000 {
    perspective: 1000px;
}

/* =========================================
   8. INTERACTIVE BUTTON RIPPLE EFFECT
========================================= */
/* Button par click karne par paani (wave) jaisa effect */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear forwards;
    background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

@keyframes ripple-anim {
    to { 
        transform: scale(4); 
        opacity: 0; 
    }
}

/* =========================================
   9. FORM INPUTS & MODAL STYLING
========================================= */
/* Checkout form ke inputs par premium focus glow */
.input-minimal {
    background-color: #f8fafc; 
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-minimal:focus {
    background-color: #ffffff; 
    border-color: #00C16A;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 193, 106, 0.15);
}

/* =========================================
   10. SCROLL ANIMATION INITIAL STATES
========================================= */
/* JS is class ke elements ko detect karke unhe smoothly dikhayega */
.animate-on-scroll {
    will-change: transform, opacity;
}

/* Demo Website Box Blur Interaction */
.group:hover .backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
