/* 
 * Sales Page Styles - AchieveAI Design System
 * 
 * Custom styles specific to the sales page
 * These styles complement the design system and Tailwind CSS
 */

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

/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .backdrop-blur-12 {
        background-color: rgba(18, 21, 30, 0.95) !important;
    }
}

/* Page-specific animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

.animate-float-reverse {
    animation: float 8s ease-in-out infinite reverse;
}

/* Star pulse animation on hover */
.group:hover svg.fill-current {
    animation: star-pulse 0.6s ease-in-out;
}

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

/* Enhanced button shimmer effect */
.hero-cta-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.hero-cta-btn:hover .shimmer-effect {
    animation: shimmer 1.5s ease-in-out infinite;
}

/* Text shimmer effect for headlines */
.text-shimmer {
    position: relative;
    background: linear-gradient(
        90deg,
        #4D7CFE 0%,
        #00ffa2 25%,
        #ffffff 50%,
        #00ffa2 75%,
        #4D7CFE 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% {
        background-position: 200% 0;
    }
    50% {
        background-position: -200% 0;
    }
}

.sales-page-page-main {
    animation: fadeInUp 0.8s ease-out;
}

/* Animation delays for staggered effects */
.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

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

/* Custom hover effects for calendar items */
.calendar-event-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-event-card:hover {
    transform: translateX(4px);
}

/* Pulse animation for badges */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(77, 124, 254, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(77, 124, 254, 0);
    }
}

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

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

.gradient-text-animate {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Card hover effects with micro animations */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Stagger animation delays for cards */
.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }
.feature-card:nth-child(9) { animation-delay: 0.45s; }
.feature-card:nth-child(10) { animation-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .backdrop-blur-12 {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Gentler floating animations on mobile */
    @keyframes float {
        0%, 100% { 
            transform: translateY(0) rotate(0deg); 
        }
        25% { 
            transform: translateY(-8px) rotate(3deg); 
        }
        50% { 
            transform: translateY(5px) rotate(-2deg); 
        }
        75% { 
            transform: translateY(-5px) rotate(2deg); 
        }
    }
}

@media (max-width: 640px) {
    /* Smaller floating elements on very small screens */
    .animate-float,
    .animate-float-reverse {
        transform: scale(0.8);
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Selection styles */
::selection {
    background: rgba(77, 124, 254, 0.3);
    color: #e7ecff;
}

::-moz-selection {
    background: rgba(77, 124, 254, 0.3);
    color: #e7ecff;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #4D7CFE;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4D7CFE, #8AABFF);
    border-radius: 10px;
    border: 1px solid rgba(77, 124, 254, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5D8CFE, #9ABBFF);
}
