/* NovaLexy Custom Styles - Modern Rebuild */

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

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

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.6); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

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

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #3b82f6; }
}

/* Floating Language Icons */
.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.floating-icon:nth-child(1) { animation-delay: 0s; }
.floating-icon:nth-child(2) { animation-delay: 1s; }
.floating-icon:nth-child(3) { animation-delay: 2s; }
.floating-icon:nth-child(4) { animation-delay: 3s; }
.floating-icon:nth-child(5) { animation-delay: 4s; }
.floating-icon:nth-child(6) { animation-delay: 5s; }

.floating-icon:hover {
    opacity: 0.8;
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.4));
    z-index: 20;
}

/* Glow Text Effect */
.glow-text {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Glow Button Effect */
.glow-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-button::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;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.pulse-glow-auto {
    position: relative;
    overflow: hidden;
}

.pulse-glow-auto::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pulse-glow-auto:hover::before {
    opacity: 0.5;
    animation: pulse-glow-effect 2s ease-in-out;
}

@keyframes pulse-glow-effect {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Compact Bento Grid Styles */
.compact-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Layout */
@media (min-width: 640px) {
    .compact-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Tablet Layout */
@media (min-width: 768px) {
    .compact-bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .compact-bento-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    /* Make main card span 2 columns for better hierarchy */
    .main-card {
        grid-column: span 2;
    }
}

/* Compact Bento Card Styles */
.bento-card {
    position: relative;
    min-height: 120px;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.bento-card.loaded {
    opacity: 1;
    transform: translateY(0);
}

.bento-card:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.bento-card .card-content {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 120px;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.bento-card:hover .card-content {
    border-color: rgb(55, 65, 81);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Moving Dots Background */
.moving-dots {
    background-image: radial-gradient(circle, rgba(156, 163, 175, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveDots 20s linear infinite;
}

@keyframes moveDots {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

/* Subtle card hover effects */
.bento-card .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    border-radius: inherit;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover .card-content::before {
    opacity: 1;
}

/* Remove all 3D button effects */
.bento-card button {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.bento-card button:hover {
    background-color: rgba(55, 65, 81, 0.8) !important;
    transform: scale(1.02);
}

/* Emoji Animations */
.emoji-bounce {
    display: inline-block;
    animation: emojiBouce 2s ease-in-out infinite;
}

.emoji-rotate {
    display: inline-block;
    animation: emojiRotate 3s linear infinite;
}

.emoji-twinkle {
    display: inline-block;
    animation: emojiTwinkle 1.5s ease-in-out infinite;
}

@keyframes emojiBouce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes emojiRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes emojiTwinkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* CTA Button Pulse */
.cta-pulse {
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

/* Enhanced bubble animations for different screen sizes */
@media (min-width: 1024px) {
    .floating-bubble {
        animation-duration: 15s;
    }
}

@media (max-width: 768px) {
    .floating-bubble {
        animation-duration: 25s;
    }
}

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

/* Focus states for accessibility */
.bento-card:focus-visible {
    outline: 2px solid rgba(168, 85, 247, 0.8);
    outline-offset: 4px;
    border-radius: 28px;
}

/* Loading states */
.bento-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

.bento-card.loading .card-content {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Enhanced Arrow Pulse */
.arrow-pulse {
    animation: arrowPulse 2.5s ease-in-out infinite;
    display: inline-block;
    transition: transform 0.3s ease;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(8px) scale(1.1);
        opacity: 0.8;
    }
}

.encouragement-card:hover .arrow-pulse {
    animation-duration: 1s;
    color: rgba(255, 255, 255, 0.9);
}

/* Final performance optimizations */
.bento-card * {
    box-sizing: border-box;
}

.bubble-background {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Ensure smooth animations across all devices */
@media (max-width: 480px) {
    .bento-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .floating-bubble {
        animation-duration: 30s;
    }
    
    .bento-card .card-content {
        border-radius: 10px;
    }
}

/* Enhanced Chart Bar Animation */
.chart-bar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
    opacity: 0.9;
}

.chart-card:hover .chart-bar {
    transform: scaleY(1.15);
    opacity: 1;
    filter: brightness(1.1);
}

.chart-bar:nth-child(odd) {
    transition-delay: 0.05s;
}

.chart-bar:nth-child(even) {
    transition-delay: 0.1s;
}

/* Improved card border radius consistency */
.bento-card .card-content {
    border-radius: 12px;
}

@media (max-width: 640px) {
    .card-content {
        border-radius: 10px;
    }
}

/* Text selection styling */
.bento-card *::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* Enhanced accessibility */
.bento-card[aria-pressed="true"] {
    transform: translateY(-4px) scale(1.01);
}

.bento-card:focus {
    outline: none;
}

.bento-card:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.6);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .bento-card {
        break-inside: avoid;
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .floating-bubble {
        display: none !important;
    }
    

}

/* Enhanced Avatar Float */
.avatar-float {
    animation: avatarFloat 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.avatar-float:nth-child(1) { 
    animation-delay: 0s;
    background: linear-gradient(135deg, #10b981, #059669);
}
.avatar-float:nth-child(2) { 
    animation-delay: 0.7s;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.avatar-float:nth-child(3) { 
    animation-delay: 1.4s;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.stats-card:hover .avatar-float {
    animation-duration: 2s;
    transform: scale(1.1);
}

/* Enhanced Flag Wave */
.flag-wave {
    animation: flagWave 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    display: inline-block;
}

.flag-wave:nth-child(1) { animation-delay: 0s; }
.flag-wave:nth-child(2) { animation-delay: 0.3s; }
.flag-wave:nth-child(3) { animation-delay: 0.6s; }
.flag-wave:nth-child(4) { animation-delay: 0.9s; }
.flag-wave:nth-child(5) { animation-delay: 1.2s; }

@keyframes flagWave {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    50% {
        transform: rotate(0deg) scale(1.05);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

.global-card:hover .flag-wave {
    animation-duration: 1.5s;
    transform: scale(1.2);
}

/* Enhanced Growth Bar Animation */
.growth-bar {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
    opacity: 0.8;
}

.growth-bar:hover {
    opacity: 1;
    filter: brightness(1.2);
}

/* Simplified content animations */
.bento-card h3 {
    transition: color 0.3s ease;
}

.bento-card:hover h3 {
    color: rgb(243, 244, 246);
}

.bento-card p {
    transition: color 0.3s ease;
}

.bento-card:hover p {
    color: rgb(209, 213, 219);
}

/* Loading skeleton animation */
@keyframes skeleton {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.bento-card.skeleton .card-gradient {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 100%;
    animation: skeleton 1.5s infinite;
}

/* Modern focus indicators */
.bento-card button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.3);
}

/* Improved button interactions */
.bento-card button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.bento-card button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.bento-card button:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.final-message-card:hover .growth-bar {
    transform: scaleY(1.2);
}

.growth-card:hover .progress-bar {
    transform: scaleY(1.1);
    filter: brightness(1.2);
}

/* Card content layering */
.bento-card .card-content > * {
    position: relative;
    z-index: 2;
}

/* Premium hover state transitions */
.bento-card {
    transition: 
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.3s ease,
        z-index 0s;
}

.bento-card:hover {
    transition: 
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.2s ease,
        z-index 0s;
}

/* Improved performance for transforms */
.bento-card,
.bento-card .card-content {
    contain: layout style paint;
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .bento-card .card-gradient {
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .floating-bubble {
        opacity: 0.7;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bento-card .card-gradient {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.8);
    }
    
    .bento-card h3,
    .bento-card p {
        text-shadow: none;
        font-weight: 700;
    }
}

/* Enhanced Sparkle Background */
.sparkle-container {
    overflow: hidden;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: sparkleFloat 12s infinite linear;
    filter: blur(0.5px);
}

.sparkle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.sparkle-2 {
    top: 30%;
    left: 60%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.sparkle-3 {
    top: 70%;
    left: 30%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.sparkle-4 {
    top: 50%;
    left: 80%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.sparkle-5 {
    top: 80%;
    left: 10%;
    animation-delay: 1s;
    animation-duration: 11s;
}

@keyframes sparkleFloat {
    0% {
        opacity: 0;
        transform: translateY(0px) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: translateY(-50px) rotate(180deg) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) rotate(360deg) scale(0.5);
    }
}

/* Enhanced Sparkle Particles */
.sparkle-particles {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.9) 0%, rgba(245, 158, 11, 0.7) 100%);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 5s infinite ease-in-out;
    filter: blur(0.5px);
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.particle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.particle-2 {
    top: 30%;
    left: 85%;
    animation-delay: 0.8s;
    animation-duration: 4.5s;
}

.particle-3 {
    top: 70%;
    left: 25%;
    animation-delay: 1.6s;
    animation-duration: 5s;
}

.particle-4 {
    top: 60%;
    left: 75%;
    animation-delay: 2.4s;
    animation-duration: 4.2s;
}

.particle-5 {
    top: 80%;
    left: 50%;
    animation-delay: 3.2s;
    animation-duration: 4.8s;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0px) scale(0.3) rotate(0deg);
    }
    15% {
        opacity: 0.8;
    }
    25% {
        opacity: 1;
        transform: translateY(-15px) scale(1) rotate(90deg);
    }
    75% {
        opacity: 1;
        transform: translateY(-25px) scale(1.1) rotate(270deg);
    }
    85% {
        opacity: 0.8;
    }
}

.proof-card:hover .particle {
    animation-duration: 2s;
}

/* Enhanced text readability */
.bento-card h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    line-height: 1.2;
}

.bento-card p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

/* Button enhancements */
.bento-card button {
    font-weight: 600;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Improved contrast ratios */
.bento-card .text-white {
    color: #ffffff;
}

.bento-card .text-opacity-90 {
    color: rgba(255, 255, 255, 0.9);
}

.bento-card .text-opacity-80 {
    color: rgba(255, 255, 255, 0.8);
}

/* Modern scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.6);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.8);
}

/* Enhanced Sparkle and Glow Effects */
.sparkle-glow {
    position: relative;
    overflow: visible;
}

.sparkle-glow::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #7c3aed, #3b82f6, #10b981, #f59e0b);
    border-radius: 27px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientRotate 6s linear infinite;
    filter: blur(1px);
}

.hero-card:hover .sparkle-glow::after {
    opacity: 0.4;
    filter: blur(0px);
}

@keyframes gradientRotate {
    0% {
        background: linear-gradient(45deg, #7c3aed, #3b82f6, #10b981, #f59e0b);
        transform: rotate(0deg);
    }
    25% {
        background: linear-gradient(45deg, #3b82f6, #10b981, #f59e0b, #7c3aed);
        transform: rotate(90deg);
    }
    50% {
        background: linear-gradient(45deg, #10b981, #f59e0b, #7c3aed, #3b82f6);
        transform: rotate(180deg);
    }
    75% {
        background: linear-gradient(45deg, #f59e0b, #7c3aed, #3b82f6, #10b981);
        transform: rotate(270deg);
    }
    100% {
        background: linear-gradient(45deg, #7c3aed, #3b82f6, #10b981, #f59e0b);
        transform: rotate(360deg);
    }
}

/* Additional premium glow effects */
.bento-card:hover {
    filter: brightness(1.05);
}

.hero-card:hover {
    filter: brightness(1.1) saturate(1.1);
}

/* Micro-interactions */
.bento-card button:active {
    transform: translateZ(5px) scale(0.98);
}

.counter {
    font-variant-numeric: tabular-nums;
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Enhanced card visibility on scroll */
.bento-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* High-performance animations */
@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bento-card.loaded {
    animation: cardEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Improved touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .bento-card:active {
        transform: scale(0.98);
    }
    
    .bento-card:hover {
        transform: none;
    }
}

/* Enhanced mobile experience */
@media (max-width: 640px) {
    .modern-bento-container {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .bento-card {
        min-height: 160px;
    }
    
    .card-gradient {
        min-height: 160px;
        border-radius: 20px;
        padding: 1rem;
    }
    
    .bento-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    /* Reduce motion on mobile for better performance */
    .floating-bubble {
        animation-duration: 20s;
    }
    
    /* Optimize text sizes for mobile */
    .hero-card h3 {
        font-size: 2rem !important;
    }
    
    .speed-card h3, .growth-card h3 {
        font-size: 1.5rem !important;
    }
}

/* Accessibility and Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .bento-card,
    .card-gradient,
    .floating-bubble,
    .progress-bar,
    .counter,
    .emoji-bounce,
    .emoji-rotate,
    .emoji-twinkle,
    .cta-pulse,
    .arrow-pulse,
    .chart-bar,
    .avatar-float,
    .flag-wave,
    .growth-bar,
    .sparkle,
    .particle {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
    
    .bento-card:hover {
        transform: none !important;
    }
    
    .bento-card {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .floating-bubble {
        display: none !important;
    }
}

/* Removed old card effects - using simpler design now */

/* Premium animations */
/* Floating Bubble Background */
.bubble-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.floating-bubble {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(2px);
    animation: bubbleFloat linear infinite;
    pointer-events: none;
    will-change: transform;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Progress Bar Animation */
.progress-bar {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar.animated {
    transform: scaleY(1);
}

/* Staggered loading animation */
.bento-card:nth-child(1) { transition-delay: 0ms; }
.bento-card:nth-child(2) { transition-delay: 100ms; }
.bento-card:nth-child(3) { transition-delay: 200ms; }
.bento-card:nth-child(4) { transition-delay: 300ms; }
.bento-card:nth-child(5) { transition-delay: 400ms; }
.bento-card:nth-child(6) { transition-delay: 500ms; }
.bento-card:nth-child(7) { transition-delay: 600ms; }
.bento-card:nth-child(8) { transition-delay: 700ms; }
.bento-card:nth-child(9) { transition-delay: 800ms; }
.bento-card:nth-child(10) { transition-delay: 900ms; }

/* Simplified hover effects for all cards */
.bento-card:hover {
    transform: translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bento-card {
        min-height: 110px;
    }
    
    .bento-card:hover {
        transform: translateY(-2px);
    }
    
    .compact-bento-grid {
        gap: 0.75rem;
    }
    
    .bento-card .card-content {
        min-height: 110px;
        border-radius: 10px;
    }
}

/* Performance optimizations */
.bento-card {
    backface-visibility: hidden;
}



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

@keyframes bentoGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 60px rgba(147, 51, 234, 0.4);
    }
}

@keyframes bentoPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

/* Add subtle animations */
.bento-hero {
    animation: bentoFloat 6s ease-in-out infinite;
}

.bento-stats {
    animation: bentoFloat 6s ease-in-out infinite;
    animation-delay: 1s;
}

.bento-progress {
    animation: bentoFloat 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* Enhanced backdrop effects */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.bento-card:hover::before {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .bento-grid-container {
        gap: 1rem;
    }
    
    .bento-card {
        min-height: 200px;
    }
    
    .bento-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .bento-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1440px) {
    .bento-grid-container {
        gap: 2rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .bento-card,
    .bento-hero,
    .bento-stats,
    .bento-progress {
        animation: none;
    }
    
    .bento-card:hover {
        transform: none;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .bento-card {
        border-color: rgba(75, 85, 99, 0.3);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bento-card {
        border-width: 2px;
        border-color: rgba(255, 255, 255, 0.8);
    }
}

/* Print styles */
@media print {
    .bento-grid-container {
        display: block;
    }
    
    .bento-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        transform: none !important;
        animation: none !important;
    }
}

/* Advanced Premium Effects */
.bento-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bento-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Morphing background gradients */
@keyframes morphGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bento-hero {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: morphGradient 8s ease infinite, bentoFloat 6s ease-in-out infinite;
}

/* Particle effect overlay */
.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
}

.bento-card:hover::after {
    opacity: 1;
}

/* Text glow effects */
.bento-hero h3 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.bento-stats .text-5xl {
    animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    0% {
        text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

/* Floating elements animation */
@keyframes floatElements {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

.bento-schedule .grid > div {
    animation: floatElements 3s ease-in-out infinite;
}

.bento-schedule .grid > div:nth-child(even) {
    animation-delay: 0.5s;
}

.bento-schedule .grid > div:nth-child(3n) {
    animation-delay: 1s;
}

/* Progress bar animation */
@keyframes progressPulse {
    0%, 100% {
        width: 91.666667%; /* w-11/12 */
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    }
    50% {
        width: 95%;
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
    }
}

.bento-stats .w-11\/12 {
    animation: progressPulse 2s ease-in-out infinite;
}

/* Icon rotation effects */
.bento-feature svg,
.bento-tools svg {
    transition: transform 0.5s ease;
}

.bento-feature:hover svg,
.bento-tools:hover svg {
    transform: rotate(360deg) scale(1.1);
}

/* Advanced glassmorphism */
.bento-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.125);
}

/* Magnetic hover effect */
@keyframes magneticPull {
    0% {
        transform: translateY(-8px) scale(1.02);
    }
    50% {
        transform: translateY(-12px) scale(1.025);
    }
    100% {
        transform: translateY(-8px) scale(1.02);
    }
}

.bento-cta:hover {
    animation: magneticPull 1s ease-in-out infinite;
}

/* Shimmer effect for CTA button */
.bento-cta a {
    position: relative;
    overflow: hidden;
}

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

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

/* Enhanced mobile interactions */
@media (max-width: 767px) {
    .bento-card {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .bento-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* High-end typography effects */
.bento-hero h3 {
    background: linear-gradient(45deg, #ffffff, #e0e7ff, #c7d2fe, #a5b4fc);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: morphGradient 6s ease infinite;
}

/* Pain Point Cards - Enhanced Framer Style */
.pain-point-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(75, 85, 99, 0.4);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.pain-point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.pain-point-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.pain-point-card:hover::before {
    left: 100%;
}

.pain-point-card:hover::after {
    opacity: 1;
}

.pain-point-card:hover {
    transform: translateY(-20px) scale(1.05) rotateX(5deg);
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4), 
        0 0 50px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.pain-point-card > * {
    position: relative;
    z-index: 2;
}

.pain-point-card:hover .text-red-400 {
    transform: rotate(15deg) scale(1.2);
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8));
    animation: dramaticPulse 1.5s ease-in-out infinite;
}

.pain-point-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pain-point-card:nth-child(2) {
    animation-delay: 0.3s;
}

.pain-point-card:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional premium animations for bento grid */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Staggered animation entrance */
.bento-hero {
    animation-delay: 0.1s;
}

.bento-stats {
    animation-delay: 0.2s;
}

.bento-feature {
    animation-delay: 0.3s;
}

.bento-schedule {
    animation-delay: 0.4s;
}

.bento-progress {
    animation-delay: 0.5s;
}

.bento-tools {
    animation-delay: 0.6s;
}

.bento-cta {
    animation-delay: 0.7s;
}

@keyframes dramaticPulse {
    0%, 100% { 
        transform: rotate(15deg) scale(1.2);
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8));
    }
    50% { 
        transform: rotate(15deg) scale(1.3);
        filter: drop-shadow(0 0 30px rgba(239, 68, 68, 1));
    }
}

/* Pain Points Section Background Enhancement */
#pain-points {
    position: relative;
    overflow: hidden;
}

#pain-points::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(239, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
    animation: backgroundFlow 8s ease-in-out infinite;
}

@keyframes backgroundFlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: scale(1.1) rotate(1deg);
        opacity: 1;
    }
    66% {
        transform: scale(0.9) rotate(-1deg);
        opacity: 0.9;
    }
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(147, 51, 234, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(147, 51, 234, 0.2);
}

.feature-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 51, 234, 0.9) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.feature-card:hover .feature-card-hover {
    opacity: 1;
}

/* Bot Cards */
.bot-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    height: 300px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.bot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.bot-card-front,
.bot-card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    border-radius: 1rem;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.bot-card-back {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 51, 234, 0.9) 100%);
    transform: rotateY(180deg);
}

.bot-card:hover .bot-card-front {
    transform: rotateY(180deg);
}

.bot-card:hover .bot-card-back {
    transform: rotateY(0deg);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
    transition: left 0.5s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Pricing Cards */
.pricing-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover::after {
    opacity: 1;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    animation: glow 3s ease-in-out infinite alternate;
}

.pricing-card-featured:hover {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Stars Animation for Final CTA */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.3), transparent),
                      radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
                      radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
                      radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 4s linear infinite;
}

.stars::after {
    background-image: radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.3), transparent),
                      radial-gradient(2px 2px at 100px 20px, rgba(255, 255, 255, 0.3), transparent),
                      radial-gradient(1px 1px at 150px 60px, rgba(255, 255, 255, 0.3), transparent),
                      radial-gradient(1px 1px at 180px 10px, rgba(255, 255, 255, 0.3), transparent);
    animation-delay: 2s;
}

/* Hero Section Animations */
.hero-heading {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-heading.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-subheading {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subheading.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Animation */
.typing-text {
    border-right: 2px solid #3b82f6;
    padding-right: 2px;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Carousel Enhancements */
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #3b82f6;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Carousel Micro-animations */
.typing-overlay .typing-text {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: width 2s steps(20) 0.5s;
}

.feedback-overlay {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: none;
    transition: all 0.3s ease;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.chat-bubble {
    animation: none;
    transition: all 0.3s ease;
}

/* Mobile Menu */
#mobile-menu {
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

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

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(147, 51, 234, 0.9));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Fade In Animation */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in.delay-300 {
    animation-delay: 0.3s;
}

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

/* Enhanced Footer Styles */
.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.footer-link {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 4px;
}

/* Smooth Scroll Bar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #7c3aed);
}

/* Text Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

/* Focus Styles */
*:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .floating-icon {
        font-size: 1.5rem;
        opacity: 0.2;
        pointer-events: none;
    }
    
    .bot-card {
        height: auto;
        min-height: 250px;
    }
    
    .feature-card-hover {
        position: static;
        opacity: 1;
        background: none;
        margin-top: 1rem;
        padding: 0;
    }
    
    .bot-card-front,
    .bot-card-back {
        position: static;
        backface-visibility: visible;
    }
    
    .bot-card-back {
        transform: none;
        background: rgba(59, 130, 246, 0.1);
        margin-top: 1rem;
        border-radius: 0.5rem;
        padding: 1rem;
    }
    
    .hero-heading {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subheading {
        transform: translateX(0);
        padding: 0 1rem;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .testimonial-card {
        margin: 0 0.5rem;
    }
    
    /* Ensure all sections are visible on mobile */
    section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1 !important;
        min-height: auto !important;
    }
    
    /* Ensure carousel is visible */
    #carousel-container {
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
        overflow: visible;
        position: relative;
        margin: 0 auto;
    }
    
    #carousel-track {
        width: 100%;
        position: relative;
    }
    
    #carousel-track .min-w-full {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
    }
    
    #prev-slide, #next-slide {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #prev-slide {
        left: 10px;
    }
    
    #next-slide {
        right: 10px;
    }
    
    .carousel-dot {
        width: 16px;
        height: 16px;
        margin: 0 6px;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 2rem;
    }
    
    .carousel-container {
        margin: 0 -0.5rem;
    }
    
    .bg-gradient-to-br {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    #prev-slide, #next-slide {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }
    
    .carousel-container {
        position: relative;
        padding: 0 3rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-icon {
        animation: none;
    }
    
    .stars::before,
    .stars::after {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .floating-icon,
    .stars,
    nav {
        display: none !important;
    }
    
    section {
        break-inside: avoid;
    }
}

/* Enhanced scroll behavior */
html {
    scroll-padding-top: 80px;
}

/* Performance optimizations */
* {
    will-change: auto;
}

.animate-on-scroll {
    will-change: transform, opacity;
}

/* Additional modern enhancements */
.glass-panel {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Hover effects for buttons and interactive elements */
button, a {
    transition: all 0.3s ease;
}

button:not(.glow-button):hover {
    transform: translateY(-2px);
}

button:active {
    transform: scale(0.98);
}

/* Enhanced mobile touch interactions */
@media (hover: none) and (pointer: coarse) {
    button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Modern 3D and Animation Enhancements */

/* Perspective for 3D effects */
.perspective-1000 {
    perspective: 1000px;
}

/* Gradient shift animation for hero text */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease-in-out infinite;
}

/* Modern glass panel effects */
.glass-panel {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Advanced 3D card transforms */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: 
        perspective(1000px) 
        rotateX(5deg) 
        rotateY(-5deg) 
        translateY(-10px) 
        scale(1.02);
}

/* Enhanced backdrop blur for modern cards */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

/* Smooth scale and translate combinations */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(59, 130, 246, 0.1);
}

/* Modern button hover effects */
.modern-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-button::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.6s ease;
}

.modern-button:hover::before {
    left: 100%;
}

/* Enhanced glow effects */
.glow-intense {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
    transition: filter 0.3s ease;
}

.glow-intense:hover {
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8));
}

/* Smooth rotation animations */
@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* Modern card stack effect */
.card-stack {
    position: relative;
}

.card-stack::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1), 
        rgba(147, 51, 234, 0.1));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-stack:hover::before {
    opacity: 1;
}

/* Smooth text reveal animations */
@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text-reveal {
    animation: text-reveal 0.8s ease-out forwards;
}

/* ===== RESPONSIVE BLOG IMAGES ===== */

/* Hero images in blog articles */
.hero-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.hero-image-container:hover img {
    transform: scale(1.02);
}

/* Article content images */
.prose img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-image-container {
        margin-bottom: 1.5rem;
    }
    
    .hero-image-container img {
        max-height: 300px;
    }
    
    .prose img {
        margin: 1rem auto;
        border-radius: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-image-container img {
        max-height: 250px;
    }
    
    .prose img {
        margin: 0.75rem auto;
    }
}

/* Blog post thumbnail images */
.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.blog-post-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .blog-post-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .blog-post-image {
        height: 120px;
    }
}

/* ===== RESPONSIVE BLOG IMAGES ===== */

/* Hero images in blog articles */
.hero-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.hero-image-container:hover img {
    transform: scale(1.02);
}

/* Article content images */
.prose img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-image-container {
        margin-bottom: 1.5rem;
    }
    
    .hero-image-container img {
        max-height: 300px;
    }
    
    .prose img {
        margin: 1rem auto;
        border-radius: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-image-container img {
        max-height: 250px;
    }
    
    .prose img {
        margin: 0.75rem auto;
    }
}

/* Blog post thumbnail images */
.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.blog-post-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .blog-post-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .blog-post-image {
        height: 120px;
    }
}
