/* ====================================
   ExpenseIQ Landing Page - Modern CSS
   ==================================== */

/* Root Variables */
:root {
    --gradient-start: #0f4436;
    --gradient-middle: #10543d;
    --gradient-end: #047857;
    --accent-yellow: #f3a51d;
    --glow-color: rgba(243, 165, 29, 0.6);
}

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

body {
    overflow-x: hidden;
}

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

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

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

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

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

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

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

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

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

/* Floating Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-pulse-slow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.animate-bounce-smooth {
    animation: bounce-smooth 2s ease-in-out infinite;
}

/* Gradient Background Animation */
.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(0.5deg);
}

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

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Glow Effects */
.drop-shadow-glow {
    filter: drop-shadow(0 0 20px var(--glow-color));
}

.text-glow {
    text-shadow: 0 0 20px var(--glow-color), 0 0 40px var(--glow-color);
}

/* Button Hover Effects */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.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.5s;
}

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

/* Scroll Reveal Animations */
.reveal {
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headers */
.section-header {
    animation: slide-up 0.8s ease-out;
}

/* Feature Row Animations */
.feature-row {
    opacity: 1 !important;
    transform: none !important;
}

.feature-row.visible {
    animation: slide-up 0.8s ease-out forwards;
}

/* Problem Cards */
.problem-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    min-height: 200px !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.problem-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Step Cards */
.step-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    min-height: 200px !important;
    transform: none !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-card.visible {
    opacity: 1;
    transform: scale(1);
}

/* Pricing Cards */
.pricing-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    min-height: 400px !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Mascot 3D Effect */
.mascot-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.mascot-container:hover .mascot-3d {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Badge Animation */
.badge {
    animation: slide-in-right 0.6s ease-out;
}

/* Hero Content Animation */
.hero-content > * {
    animation: slide-in-left 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-content > *:nth-child(4) {
    animation-delay: 0.4s;
}

.hero-content > *:nth-child(5) {
    animation-delay: 0.5s;
}

/* Stats Counter Animation */
.stat-item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.stat-item.visible {
    animation: slide-up 0.6s ease-out forwards;
}

/* Gradient Radial */
.bg-gradient-radial {
    background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-start);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-middle);
}

/* Particles Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .card-3d:hover {
        transform: translateY(-4px);
    }

    .mascot-container:hover .mascot-3d {
        transform: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Feature Visual Hover Effects */
.feature-visual {
    display: none;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (min-width: 768px) {
    .feature-visual {
        display: block;
    }
}

.feature-row:hover .feature-visual {
    transform: scale(1.05);
}

/* Interactive Elements */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Loading State */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth Transitions for All Interactive Elements */
a, button, .card-3d, .problem-card, .pricing-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Avatar Styles */
.avatar {
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

/* Step Number Animation */
.step-number {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.step-card:hover .step-number {
    transform: scale(1.1) rotateZ(5deg);
}

/* Feature Icon Animation */
.feature-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-content:hover .feature-icon {
    transform: scale(1.1) rotateZ(-5deg);
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .glass, .glass-dark {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Pricing Toggle Styles */
.bg-money-green {
    background-color: #0f4436;
}

#billing-toggle {
    cursor: pointer;
}

#toggle-dot {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-option {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* FAQ Styles */
.faq-item {
    border: 1px solid transparent;
}

.faq-item:hover {
    border-color: #0f4436;
}

.faq-question {
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}
