/* Public Layout Specific Styles - InfyStore Landing Page */

/* Gen Z Font Stack with Better Rupee Symbol Support */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Poppins', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Poppins', sans-serif;
    --font-accent: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Poppins', sans-serif;
    --font-currency: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Poppins', sans-serif;
    /* Brand variables */
    --accent-500: #007BFF;  /* accent */
    --accent-600: #0056B3;  /* accent hover */
    --canvas-white: #FFFFFF;
    --ghost-gray: #F9FAFB;   /* gray-50 */
    --text-primary: #1F2937; /* gray-900 */
    --text-secondary: #6B7280; /* gray-500 */
}

/* Base typography */
body {
    font-family: var(--font-primary);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.font-display {
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.font-body {
    font-family: var(--font-secondary);
    font-weight: 400;
    letter-spacing: 0;
}

.font-currency {
    font-family: var(--font-currency);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Gen Z Social Media Style Enhancements */
.genz-text-shadow { text-shadow: none; }

.genz-rounded {
    border-radius: 1.5rem;
}

.genz-rounded-lg {
    border-radius: 2rem;
}

.genz-rounded-xl {
    border-radius: 2.5rem;
}

.genz-glow {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.3);
}

.genz-glow-pink {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.genz-glow-green {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.genz-glow-blue {
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.4), 0 0 50px rgba(0, 86, 179, 0.2);
}

/* Gen Z Button Styles */
.btn-genz {
    font-family: var(--font-accent);
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-block; /* ensure overflow clipping for pseudo-elements */
}

.btn-genz:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-genz-primary {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.35);
}

.btn-genz-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

/* Soft UI / Neumorphic Secondary Button Style */
.btn-genz-secondary {
    background: linear-gradient(180deg, #E6F2FF 0%, #D9ECFF 100%);
    color: #0056B3;
    font-weight: 600;
    border: none;
    border-radius: 1.5rem; /* Significantly rounded corners for soft UI */
    /* Soft neumorphic shadow - creates the raised, soft appearance */
    box-shadow: 
        0 8px 16px rgba(0, 123, 255, 0.15),
        0 2px 4px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 123, 255, 0.1);
    position: relative;
    overflow: visible;
}

.btn-genz-secondary:hover {
    background: linear-gradient(180deg, #CFE7FF 0%, #C4E1FF 100%);
    color: #004085;
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 123, 255, 0.2),
        0 4px 8px rgba(0, 123, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 123, 255, 0.15);
}

.btn-genz-secondary:active {
    transform: translateY(0px);
    box-shadow: 
        0 4px 8px rgba(0, 123, 255, 0.15),
        0 1px 2px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 123, 255, 0.1);
}

/* Gen Z Card Styles */
.card-genz {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-genz:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.4);
}

/* Gen Z Gradient animations and effects */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-animated {
    background: linear-gradient(-45deg, var(--accent-500), var(--accent-600), #073763, #0b2a5b);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-text-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text-animated {
    background: linear-gradient(-45deg, var(--accent-500), var(--accent-600), #073763, #0b2a5b);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text-shift 8s ease infinite;
}

/* Enhanced floating animation */
@keyframes float-enhanced {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-15px) rotate(2deg) scale(1.05); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-25px) rotate(0deg) scale(1.1); 
        opacity: 1;
    }
    75% { 
        transform: translateY(-15px) rotate(-2deg) scale(1.05); 
        opacity: 0.8;
    }
}

.float-enhanced {
    animation: float-enhanced 6s ease-in-out infinite;
}

/* Gen Z Bounce Animation */
@keyframes genz-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.05);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
}

.genz-bounce {
    animation: genz-bounce 2s infinite;
}

/* Enhanced card hover effects with gradients */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1)) border-box;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 30px 60px rgba(0, 123, 255, 0.15);
    background: linear-gradient(white, rgba(0, 123, 255, 0.02)) padding-box,
                linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.2)) border-box;
}

/* Enhanced testimonial cards */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 86, 179, 0.05)) border-box;
    border: 1px solid rgba(0, 123, 255, 0.15);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    background: linear-gradient(white, rgba(0, 123, 255, 0.02)) padding-box,
                linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 86, 179, 0.15)) border-box;
    border-color: rgba(0, 123, 255, 0.3);
}

/* Enhanced pricing card effects */
.pricing-card-popular {
    position: relative;
    overflow: visible;
    background: linear-gradient(white, rgba(0, 123, 255, 0.02)) padding-box,
                linear-gradient(135deg, var(--accent-500), var(--accent-600), #073763, #0b2a5b) border-box;
    border: 3px solid transparent;
    border-top: 8px solid transparent;
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.3);
    animation: gradient-border 6s linear infinite;
}

.pricing-card-popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600), #073763, #0b2a5b);
    border-radius: 1rem;
    z-index: -1;
    animation: gradient-shift 8s ease infinite;
}

/* Gradient border animation */
@keyframes gradient-border {
    0% { border-color: var(--accent-500); }
    25% { border-color: var(--accent-600); }
    50% { border-color: #073763; }
    75% { border-color: #0b2a5b; }
    100% { border-color: var(--accent-500); }
}

/* Enhanced button effects */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    background-size: 200% 200%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.4);
}

.btn-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-gradient-primary:hover::before {
    left: 100%;
}

/* Enhanced urgent pulse with gradients */
@keyframes urgent-pulse-gradient {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        background: linear-gradient(135deg, #ef4444, #f97316);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
        background: linear-gradient(135deg, #dc2626, #ea580c);
    }
}

.urgent-pulse-gradient {
    animation: urgent-pulse-gradient 2s infinite;
}

/* Simple, neutral scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9; /* slate-100 */
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* slate-300 */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; /* slate-400 */
}

/* Enhanced mobile menu with gradients */
#mobile-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 123, 255, 0.05));
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
}

/* Gradient text effects for headings */
.gradient-heading {
    /* Style guide: no accent gradient for non-interactive headings */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: var(--text-primary);
}

/* Enhanced glass morphism */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Floating animation for decorative elements */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse animation for CTAs */
.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Urgency animations */
@keyframes urgent-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.urgent-pulse {
    animation: urgent-pulse 2s infinite;
}

/* Enhanced CTA button styling for store registration */
.cta-primary {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    background-size: 200% 200%;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none; /* no glow when not hovered */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary:hover {
    background-position: 100% 0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.55);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-primary:hover::before {
    left: 100%;
}

/* Special glow effect for primary CTA */
.cta-primary.urgent-pulse {
    animation: urgent-pulse 2s infinite, cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.5);
    }
}

/* Gradient text for urgency */
.urgent-gradient {
    background: linear-gradient(45deg, #ef4444, #f97316, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: urgent-pulse 2s infinite;
}

/* Responsive typography */
@media (max-width: 640px) {
    .text-responsive {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 641px) {
    .text-responsive {
        font-size: 3.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .text-responsive {
        font-size: 4rem;
        line-height: 1.1;
    }
}

/* Ensure sections with h2 headings have enough space for sticky header */
#features, #testimonials, #pricing {
    scroll-margin-top: 6rem;
}

/* Public page backgrounds - switch to brand blue/navy */
body.bg-gradient-to-br.from-gray-50.via-indigo-50.to-purple-50,
section.bg-gradient-to-br.from-indigo-50.via-purple-50.to-pink-50,
section.bg-gradient-to-br.from-gray-50.via-indigo-50.to-purple-50,
section.bg-gradient-to-br.from-purple-50.via-pink-50.to-rose-50,
section.bg-gradient-to-br.from-blue-50.via-indigo-50.to-purple-50 {
    background-image: linear-gradient(135deg, #f5fbff, #e6f2ff, #d9ecff) !important;
}

/* Additional spacing for h2 headings to prevent cutoff */
#features h2, #testimonials h2, #pricing h2 {
    margin-top: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Ensure text containers have proper spacing */
#features .text-center, #testimonials .text-center, #pricing .text-center {
    margin-top: 1rem;
}

/* Testimonial card styling */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.1);
    font-family: serif;
}

/* Custom animations and modern styling */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles */
.custom-focus:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

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

/* Mobile menu button animation */
#mobile-menu-button svg {
    transition: transform 0.3s ease;
}

#mobile-menu-button:hover svg {
    transform: scale(1.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    /* Ensure mobile menu appears above other content */
    #mobile-menu {
        z-index: 50;
        position: relative;
    }
}
