.gradient-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%), url("https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80");
    background-size: cover;
    background-position: center;
}

.btn-primary {
    background: linear-gradient(to right, #FF8C00, #FFA500);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #FFA500, #FF8C00);
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-secondary {
    background-color: white;
    color: #FF8C00;
    border: 1px solid #FF8C00;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #FFF8E1;
    color: #FFA500;
    border-color: #FFA500;
}

.text-brand {
    color: #FF8C00;
}

.bg-brand {
    background-color: #FF8C00;
}

.bg-brand:hover {
    background-color: #E07B00;
}

.bg-brand-light {
    background-color: #FFF8E1;
}

.border-brand {
    border-color: #FF8C00;
}

.joyful-font {
    font-family: 'Poppins', "Noto Sans Devanagari", "Noto Sans", sans-serif;
}

.body-font {
    font-family: 'Montserrat', "Noto Sans Devanagari", "Noto Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', "Noto Sans Devanagari", "Noto Sans", sans-serif;
    font-weight: 700;
}

body {
    font-family: 'Montserrat', "Noto Sans Devanagari", "Noto Sans", sans-serif;
}

/* Hindi/Devanagari Font Support */
body[lang="hi"], 
html[lang="hi"] body {
    font-family: "Noto Sans Devanagari", "Mukti", "Lohit Devanagari", sans-serif;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

html[lang="hi"] h1, 
html[lang="hi"] h2, 
html[lang="hi"] h3, 
html[lang="hi"] h4, 
html[lang="hi"] h5, 
html[lang="hi"] h6 {
    font-family: "Noto Sans Devanagari", "Mukti", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* State management styles */
.hidden-content {
    display: none;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

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

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

/* Enhanced Mobile-First Design */
/* Base styles optimized for mobile */
* {
    box-sizing: border-box;
}

body {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Touch-friendly interactions */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced button styles for better accessibility */
button, .btn, input[type="button"], input[type="submit"] {
    min-height: 44px; /* Apple's recommended touch target size */
    min-width: 44px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px; /* Prevent zoom on iOS */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
    /* Improved touch targets */
    .intercom-widget {
        width: 60px !important;
        height: 60px !important;
        bottom: 20px !important;
        right: 20px !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        border: 3px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    }
    
    /* Enhanced form inputs */
    input, select, textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
        -webkit-appearance: none;
        border-radius: 12px;
        padding: 16px 20px;
        border: 2px solid #e5e7eb;
        background: white;
        transition: all 0.2s ease;
        min-height: 50px;
    }
    
    input:focus, select:focus, textarea:focus {
        border-color: #FF8C00;
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    }
    
    /* Larger buttons for mobile */
    button, .btn {
        min-height: 50px !important;
        font-size: 18px !important;
        font-weight: 700;
        border-radius: 16px;
        padding: 16px 24px;
    }
    
    /* Typography optimizations */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    p {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1rem;
    }
    
    /* Better spacing for mobile */
    .container, .layout-container {
        padding: 0 16px !important;
    }
    
    /* Enhanced card styles */
    .card, .bg-white.rounded-2xl, .bg-white.p-6, .bg-white.p-8 {
        padding: 20px !important;
        margin: 0 8px 16px 8px !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Grid improvements */
    .grid {
        gap: 16px !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .grid-cols-3 {
        grid-template-columns: 1fr !important;
    }
}

/* Language toggle specific styles */
#language-toggle {
    position: relative;
    overflow: hidden;
}

#language-toggle::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.5s ease;
}

#language-toggle:hover::before {
    left: 100%;
}

/* Cultural design elements for Indian users */
.indian-pattern {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .text-brand {
        color: #000;
        font-weight: 900;
    }
}

/* Removed automatic dark mode to maintain bright solar theme */

/* Mobile Card Styles - Comprehensive Coverage */
@media (max-width: 768px) {
    /* Results Section Cards */
    .bg-white.rounded-2xl.shadow-2xl {
        padding: 20px !important;
        margin: 0 8px !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    }
    
    /* Enhanced gradient backgrounds */
    .bg-gradient-to-r.from-green-50.to-emerald-50 {
        padding: 20px !important;
        border-radius: 16px !important;
        border: 2px solid rgba(34, 197, 94, 0.2) !important;
    }
    
    .bg-gradient-to-r.from-green-50.to-emerald-50 h3 {
        font-size: 1.25rem !important;
        margin-bottom: 12px !important;
    }
    
    .bg-gradient-to-r.from-green-50.to-emerald-50 p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Voice button mobile optimization */
    #voice-button {
        width: 70px !important;
        height: 70px !important;
        bottom: 100px !important;
        right: 20px !important;
        box-shadow: 0 8px 32px rgba(255, 140, 0, 0.4) !important;
    }
    
    #voice-button:active {
        transform: scale(0.95) !important;
    }
    
    /* Feature cards responsive */
    .bg-amber-50.p-6.rounded-xl {
        padding: 16px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .bg-amber-50.p-6.rounded-xl .flex.items-center.gap-4 {
        gap: 12px !important;
    }
    
    .bg-amber-50.p-6.rounded-xl .w-12.h-12 {
        width: 48px !important;
        height: 48px !important;
    }
    
    .bg-amber-50.p-6.rounded-xl h3 {
        font-size: 1.125rem !important;
        margin-bottom: 8px !important;
    }
    
    .bg-amber-50.p-6.rounded-xl .text-sm {
        font-size: 0.875rem !important;
    }
    
    .bg-amber-50.p-6.rounded-xl p.text-gray-700 {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-top: 8px !important;
    }
    
    /* FAQ section mobile */
    .faq-toggle {
        padding: 16px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .faq-toggle h3 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    .faq-icon {
        width: 24px !important;
        height: 24px !important;
        transition: transform 0.3s ease !important;
    }
    
    .faq-toggle.active .faq-icon {
        transform: rotate(180deg) !important;
    }
    
    .faq-content {
        padding: 16px !important;
    }
    
    .faq-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Contact section mobile */
    .bg-white.p-8.rounded-xl.shadow-lg.max-w-4xl {
        padding: 20px !important;
        border-radius: 16px !important;
        margin: 0 8px !important;
    }
    
    .flex.items-start.gap-4 {
        gap: 12px !important;
    }
    
    .w-10.h-10.bg-amber-100.rounded-full {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }
    
    .w-10.h-10.bg-amber-100.rounded-full svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Enhanced brand colors for mobile */
    .bg-brand {
        background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%) !important;
        box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3) !important;
    }
    
    /* WhatsApp button enhancement */
    .bg-green-500.hover\:bg-green-600 {
        background: linear-gradient(135deg, #25D366 0%, #1da851 100%) !important;
        min-height: 50px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
    }
    
    /* Spacing improvements */
    .space-y-8 > * + * {
        margin-top: 24px !important;
    }
    
    .space-y-6 > * + * {
        margin-top: 20px !important;
    }
    
    .space-y-4 > * + * {
        margin-top: 16px !important;
    }
    
    /* Text size hierarchy for mobile */
    .text-3xl {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
    }
    
    .text-2xl {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    .text-xl {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .text-lg {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }
    
    /* Enhanced hover states for mobile */
    .bg-white:hover,
    .bg-white.rounded-2xl:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
        transition: all 0.3s ease !important;
    }
}

/* Tablet specific optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Grid adjustments for tablet */
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3.gap-8 {
        gap: 24px !important;
    }
    
    .bg-white.rounded-2xl.shadow-2xl {
        padding: 24px !important;
    }
    
    .bg-gradient-to-r.from-green-50.to-emerald-50,
    .bg-gradient-to-r.from-green-50.to-emerald-50.p-4 {
        padding: 24px !important;
    }
}

/* Loading states and animations */
.bg-white.rounded-2xl,
.bg-white.p-6.rounded-xl {
    transition: all 0.3s ease;
}

.faq-toggle:focus,
.faq-toggle:focus-visible {
    outline: 2px solid #FF8C00;
    outline-offset: 2px;
}

/* Performance optimizations */
.card-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.card-loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 2s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Enhanced accessibility for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile-first progressive enhancement */
@supports (display: grid) {
    .grid {
        display: grid;
    }
}

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

/* Hide scrollbar for gallery carousel */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;  /* Smooth scrolling */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, and Opera */
}

/* Gallery carousel auto-scroll */
#gallery-carousel {
    scroll-behavior: auto; /* Override smooth for auto-scroll precision */
} 