/* Custom Styles */
html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #0f1115;
    color: #e2e8f0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* Prevent text zoom on iOS */
    text-size-adjust: 100%;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(30, 33, 41, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-border {
    border: 1px solid;
    border-image: linear-gradient(to right, #FDE047, #22C55E) 1;
}

/* Gradient Button */
.gradient-btn {
    background: linear-gradient(to left, #FDE047, #22C55E);
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.3);
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    display: inline-block;
    background: linear-gradient(to right, #FDE047 0%, #22C55E 20%, #FDE047 40%, #22C55E 60%, #FDE047 80%, #22C55E 100%);
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px #F59E0B, 0 0 10px #F59E0B;
    }
    50% {
        box-shadow: 0 0 20px #F59E0B, 0 0 30px #F59E0B;
    }
}

.glow {
    animation: glow 2s infinite;
}

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

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

/* Fade Up Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Background Elements */
.parallax-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: -1;
}

/* Card Tilt Effect */
.tilt-card {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card:hover {
    transform: rotateY(5deg) rotateX(-5deg);
}

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

/* Orbit Animation */
@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(150px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(150px) rotate(-360deg);
    }
}

@keyframes orbit-reverse {
    from {
        transform: rotate(0deg) translateX(200px) rotate(0deg);
    }
    to {
        transform: rotate(-360deg) translateX(200px) rotate(360deg);
    }
}

@keyframes orbit-slow {
    from {
        transform: rotate(0deg) translateX(250px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(250px) rotate(-360deg);
    }
}

.orbit-animation {
    animation: orbit 20s linear infinite;
}

.orbit-animation-reverse {
    animation: orbit-reverse 30s linear infinite;
}

.orbit-animation-slow {
    animation: orbit-slow 40s linear infinite;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Professional Logo Scroll Styles */
.logos-scroll-container {
    padding: 20px 0;
    mask: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
    -webkit-mask: linear-gradient(
        to right,
        transparent,
        black 15%,
        black 85%,
        transparent
    );
    position: relative;
    overflow: hidden;
    width: 100%;
}

.logos-scroll {
    -webkit-animation: scroll-left 2s linear infinite;
    animation: scroll-left 2s linear infinite;
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    animation-fill-mode: none;
    -webkit-animation-fill-mode: none;
}

.logos-scroll:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.logos-scroll:active {
    cursor: grabbing;
}

.logos-scroll.dragging {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
    cursor: grabbing;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-140px - 32px));
    }
}

/* Fallback keyframes */
@-webkit-keyframes scroll-left {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(-140px - 32px));
        transform: translateX(calc(-140px - 32px));
    }
}


.logo-container {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: grab;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.3), rgba(34, 197, 94, 0.3));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo-container:hover::before {
    opacity: 1;
}

.logo-container:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(253, 224, 71, 0.4);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* WhatsApp Notification Badge */
.whatsapp-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: linear-gradient(to bottom, #ff4757, #ff3838);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 56, 56, 0.5);
    animation: pulse-notification 2s ease-in-out infinite;
}

@keyframes pulse-notification {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 56, 56, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 56, 56, 0.7);
    }
}

/* Timeline Styles */
.timeline-dot {
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(to left, #FDE047, #22C55E);
    top: 50%;
    transform: translateY(-50%);
    right: -10px;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #FDE047, #22C55E);
    right: 0;
    top: 0;
    z-index: 1;
}

/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

/* Carousel Styles */
.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
}

/* Badge */
.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(to left, #FDE047, #22C55E);
    color: #0f1115;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

/* Dashboard Enhanced Styles */
.floating-orb {
    animation: float-rotate 20s ease-in-out infinite;
}

.floating-orb-delay {
    animation: float-rotate-reverse 25s ease-in-out infinite 5s;
}

.floating-orb-slow {
    animation: float-scale 30s ease-in-out infinite;
}

@keyframes float-rotate {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -40px) rotate(90deg); }
    50% { transform: translate(-20px, -60px) rotate(180deg); }
    75% { transform: translate(-40px, 20px) rotate(270deg); }
}

@keyframes float-rotate-reverse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, 40px) rotate(-90deg); }
    50% { transform: translate(20px, 60px) rotate(-180deg); }
    75% { transform: translate(40px, -20px) rotate(-270deg); }
}

@keyframes float-scale {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -50%) scale(1.5) rotate(180deg); }
}

/* Dashboard Cards */
.dashboard-card {
    position: relative;
    background: rgba(30, 33, 41, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(20px);
}

.dashboard-card:hover .card-glow {
    opacity: 0.4;
}

.icon-container {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse-glow 2s ease-in-out infinite;
    opacity: 0;
}

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

.card-title {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-number {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 1s ease-in-out;
    transform: translateX(-100%);
    animation: fill-progress 2s ease-out 0.5s forwards;
}

@keyframes fill-progress {
    to { transform: translateX(calc(var(--progress) - 100%)); }
}

.progress-text {
    font-size: 12px;
    color: #6B7280;
}

/* Financial Cards */
.financial-card {
    background: rgba(30, 33, 41, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.financial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.financial-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.financial-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.financial-title {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 4px;
}

.financial-amount {
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.currency {
    font-size: 16px;
    color: #6B7280;
    margin-left: 4px;
}

.financial-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 16px;
}

.financial-trend.positive { color: #10B981; }
.financial-trend.negative { color: #EF4444; }
.financial-trend.neutral { color: #F59E0B; }

.financial-chart {
    height: 50px;
    margin-top: 12px;
}

/* Chart Containers */
.chart-container {
    background: rgba(30, 33, 41, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.3s ease;
}

.chart-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.chart-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #9CA3AF;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chart-btn.active,
.chart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.chart-info {
    font-size: 14px;
    color: #9CA3AF;
}

.chart-content {
    margin-bottom: 16px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9CA3AF;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.performance-stats {
    display: flex;
    flex-direction: column;
}

.stat-item {
    margin-bottom: 16px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    display: block;
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1.5s ease-in-out;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, rgba(30, 33, 41, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    margin: 0 auto;
    max-width: 800px;
}

.summary-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
}

.summary-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 14px;
    color: #9CA3AF;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.summary-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

.total-invoices {
    font-weight: 600;
}

/* Enhanced Testimonials Styles */
.testimonials-carousel {
    position: relative;
    overflow: visible;
    margin-bottom: 32px;
    padding: 0 80px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial-card {
    background: rgba(30, 33, 41, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    min-height: 380px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.1) 0%, rgba(20, 184, 166, 0.1) 50%, rgba(34, 197, 94, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(253, 224, 71, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.quote-icon {
    position: absolute;
    top: -10px;
    right: 40px;
    font-size: 80px;
    color: rgba(253, 224, 71, 0.2);
    line-height: 1;
    z-index: 1;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.7;
    color: #E5E7EB;
    margin-bottom: 32px;
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FDE047, #14B8A6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1F2937;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.author-title {
    font-size: 14px;
    color: #9CA3AF;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    font-size: 18px;
    color: #FDE047;
    justify-content: center;
}

.testimonial-rating i {
    filter: drop-shadow(0 0 4px rgba(253, 224, 71, 0.5));
}

/* Navigation Buttons */
.carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 160px);
    left: -80px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    background: rgba(30, 33, 41, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(253, 224, 71, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FDE047;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #FDE047, #14B8A6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-btn:hover::before {
    opacity: 0.2;
}

.nav-btn:hover {
    background: rgba(253, 224, 71, 0.1);
    border-color: rgba(253, 224, 71, 0.8);
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(253, 224, 71, 0.3);
    color: white;
}

.nav-btn-prev {
    left: 0;
}

.nav-btn-next {
    right: 0;
}

/* Indicators */
.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    padding: 20px 0;
}

.testimonial-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.testimonial-indicator::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(253, 224, 71, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: scale(0.8);
}

.testimonial-indicator.active {
    background: #FDE047;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(253, 224, 71, 0.4);
}

.testimonial-indicator.active::after {
    opacity: 1;
    transform: scale(1);
}

.testimonial-indicator:hover {
    background: rgba(253, 224, 71, 0.8);
    transform: scale(1.2);
}

/* Statistics */
.testimonial-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 32px;
    background: rgba(30, 33, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #FDE047, #14B8A6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #9CA3AF;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Touch/Mobile Improvements */
@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 0 60px;
    }
    
    .carousel-navigation {
        width: calc(100% + 120px);
        left: -60px;
    }
    
    .testimonial-card {
        padding: 32px 24px;
        min-height: 300px;
    }
    
    .testimonial-text {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .quote-icon {
        font-size: 60px;
        top: -5px;
        right: 24px;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .testimonial-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .stat-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 0 40px;
    }
    
    .carousel-navigation {
        width: calc(100% + 80px);
        left: -40px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .testimonial-card {
        padding: 24px 20px;
        min-height: 280px;
    }
}

/* Loading Animation */
@keyframes testimonialFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: testimonialFadeIn 0.6s ease-out;
}

/* Fix for card visibility and complete display */
.carousel-slide {
    display: block !important;
    opacity: 1;
}

.testimonials-carousel .carousel-track {
    height: auto;
}

/* Ensure navigation buttons are always visible and clickable */
.nav-btn {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 1000;
}

/* Make sure indicators are clickable */
.testimonial-indicator {
    pointer-events: auto !important;
    z-index: 100;
    cursor: pointer;
    user-select: none;
}

.testimonial-indicator:hover {
    cursor: pointer;
}

/* Ensure buttons are always clickable */
.nav-btn {
    cursor: pointer;
    user-select: none;
}

.nav-btn:hover {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-dot::before {
        right: 50%;
        transform: translate(50%, -50%);
    }
    
    .timeline-line {
        right: 50%;
        transform: translateX(50%);
    }
    
    .dashboard-card {
        padding: 16px;
    }
    
    .card-number {
        font-size: 24px;
    }
    
    .financial-card {
        padding: 16px;
    }
    
    .financial-amount {
        font-size: 20px;
    }
    
    .chart-container {
        padding: 16px;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .summary-divider {
        width: 60px;
        height: 1px;
    }
}

/* Enhanced Dashboard Card Hover Effects - Speed & Efficiency */
.dashboard-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 15px 30px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    z-index: 10;
}

.dashboard-card:hover .card-glow {
    opacity: 0.6 !important;
    transition: opacity 0.15s ease !important;
}

.dashboard-card:hover .icon-container {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover .card-title {
    color: #ffffff !important;
    transition: color 0.15s ease;
}

.dashboard-card:hover .card-number {
    transform: scale(1.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Financial Card Hover Effects */
.financial-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.financial-card:hover {
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.financial-card:hover .financial-title {
    color: #ffffff !important;
    transition: color 0.15s ease;
}

.financial-card:hover .financial-amount {
    transform: scale(1.05);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Testimonial Card Hover Effects */
.bg-gray-800.p-8.rounded-lg.shadow-xl {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.bg-gray-800.p-8.rounded-lg.shadow-xl:hover {
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 12px 24px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(253, 224, 71, 0.3) !important;
}

/* Glass Card Hover Effects */
.glass.rounded-2xl.p-6 {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass.rounded-2xl.p-6:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Ultra-fast hover transitions for better user experience */
* {
    scroll-behavior: smooth;
}

/* Performance optimization for hover effects */
@media (prefers-reduced-motion: no-preference) {
    .dashboard-card,
    .financial-card,
    .bg-gray-800.p-8.rounded-lg.shadow-xl,
    .glass.rounded-2xl.p-6 {
        will-change: transform, box-shadow, border-color;
    }
}

/* Enhanced Navigation Styles */
.nav-link {
    position: relative;
    color: #e2e8f0;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
}

.nav-link:hover {
    color: #fde047;
    transform: translateY(-1px);
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #fde047, #22c55e);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

.nav-link.active .nav-underline {
    width: 100%;
}

.nav-link.active {
    color: #fde047;
}

/* Mobile Menu Enhancements */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

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

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

/* Navigation Glass Effect Enhancement */
nav.glass {
    background: rgba(30, 33, 41, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Scale Icon Animation */
@keyframes scale-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

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

/* General Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .text-5xl {
        font-size: 3.5rem; /* ~56px */
    }

    .md\:text-7xl {
        font-size: 5rem; /* ~80px */
    }
}

@media (max-width: 768px) {
    .text-5xl {
        font-size: 2.5rem; /* ~40px */
    }

    .md\:text-7xl {
        font-size: 3.5rem; /* ~56px */
    }
}

@media (max-width: 480px) {
    .text-5xl {
        font-size: 2rem; /* ~32px */
    }

    .md\:text-7xl {
        font-size: 2.5rem; /* ~40px */
    }

    .text-2xl {
        font-size: 1.25rem; /* ~20px */
    }
}

/* WhatsApp Floating Button Responsive */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    .whatsapp-btn i {
        font-size: 20px;
    }
    .whatsapp-notification {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* Navigation Responsive Adjustments */
@media (max-width: 768px) {
    .nav-link {
        padding: 12px 0;
        font-size: 16px;
    }
    
    #mobile-menu a {
        display: flex;
        align-items: center;
        font-weight: 500;
    }
}

/* Hero Section Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-section .relative.h-\[500px\] {
        height: 400px;
        margin-top: 3rem;
    }

    .hero-section .text-center.space-y-8 {
        align-items: center;
    }

    .hero-section .flex.flex-col.sm\:flex-row {
        justify-content: center;
    }

    .hero-section .flex.justify-end.gap-8 {
        justify-content: center;
    }

    .orbit-animation, .orbit-animation-reverse, .orbit-animation-slow {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .hero-section .relative.h-\[500px\] {
        height: 300px;
        margin-top: 2rem;
    }

    .hero-section .w-96.h-96, .hero-section .w-80.h-80, .hero-section .w-64.h-64 {
        width: 150px;
        height: 150px;
        filter: blur(20px);
    }

    .hero-section .text-5xl {
        font-size: 2.5rem;
    }

    .hero-section .md\:text-7xl {
        font-size: 3.5rem;
    }

    .hero-section .text-2xl {
        font-size: 1.5rem;
    }

    .hero-section .text-xl {
        font-size: 1rem;
    }

    .hero-section .px-8.py-4 {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section .w-96.h-96, .hero-section .w-80.h-80, .hero-section .w-64.h-64 {
        width: 100px;
        height: 100px;
        filter: blur(15px);
    }

    .hero-section .relative.h-\[500px\] {
        height: 250px;
    }
}

/* Features Section Responsive Adjustments */
@media (max-width: 1024px) {
    #features .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #features .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    #features .text-3xl.md\:text-4xl {
        font-size: 2rem;
    }
}

/* Dashboard Section Responsive Adjustments */
@media (max-width: 1024px) {
    #dashboard .grid-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }

    #dashboard .lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .chart-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .chart-controls {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    #dashboard .grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    #dashboard .text-3xl.md\:text-4xl {
        font-size: 2rem;
    }

    .financial-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #dashboard .grid-cols-5 {
        grid-template-columns: 1fr;
    }
}

/* Trust/Integration Section Responsive Adjustments */
@media (max-width: 768px) {
    .logos-scroll-container {
        mask: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
        -webkit-mask: linear-gradient(
            to right,
            transparent,
            black 5%,
            black 95%,
            transparent
        );
    }

    .logo-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .logos-scroll-container {
        mask: linear-gradient(
            to right,
            transparent,
            black 2%,
            black 98%,
            transparent
        );
        -webkit-mask: linear-gradient(
            to right,
            transparent,
            black 2%,
            black 98%,
            transparent
        );
    }

    .logo-container {
        width: 80px;
        height: 80px;
    }
}

/* How It Works Section Responsive Adjustments */
@media (max-width: 768px) {
    #how-it-works .md\:w-1\/4, #how-it-works .md\:w-3\/4 {
        width: 100%;
    }

    #how-it-works .flex-col.md\:flex-row {
        flex-direction: column;
        align-items: center;
    }

    #how-it-works .timeline-dot {
        margin-bottom: 1rem;
    }

    #how-it-works .timeline-dot::before {
        display: none;
    }

    #how-it-works .timeline-line {
        display: none;
    }
}

/* Testimonials Section Responsive Adjustments */
@media (max-width: 1024px) {
    #testimonials .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #testimonials .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    #testimonials .text-4xl {
        font-size: 2.5rem;
    }

    .testimonial-card {
        padding: 32px 24px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 0 40px;
    }
    
    .carousel-navigation {
        width: calc(100% + 80px);
        left: -40px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .testimonial-card {
        padding: 24px 20px;
        min-height: 280px;
    }
}

/* Free Trial/Contact Section Responsive Adjustments */
@media (max-width: 768px) {
    #free-trial .max-w-3xl {
        padding: 24px;
    }

    #free-trial .text-4xl {
        font-size: 2.5rem;
    }
}

/* Footer Responsive Adjustments */
@media (max-width: 768px) {
    footer .grid-cols-3 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer .space-y-2 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   INTERACTIVE FEATURES STYLES
   ============================================ */


/* Avoir Counter Animation */
.avoir-counter {
    animation: count-up 2s ease-out forwards;
}

@keyframes count-up {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.avoir-progress {
    animation: progress-fill 1.5s ease-out forwards;
}

/* Template Card Hover */
.template-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.template-card:hover {
    transform: translateY(-4px);
}


/* Invoice Table Styles */
.invoice-table {
    border-collapse: collapse;
}

.invoice-table th {
    position: sticky;
    top: 0;
    background: rgba(30, 33, 41, 0.95);
    z-index: 10;
}

.invoice-row {
    transition: all 0.2s ease;
}

.invoice-row:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    transform: scale(1.01);
}

.sortable {
    user-select: none;
}

.sortable:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Filter Pills */
.filter-pill {
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(30, 33, 41, 0.6);
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.filter-pill.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.3));
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.6);
}

.filter-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}


/* Pagination Buttons */
.pagination-btn {
    padding: 8px 12px;
    min-width: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(30, 33, 41, 0.6);
    color: #9CA3AF;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: white;
    border-color: transparent;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    border-color: rgba(59, 130, 246, 0.5);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Responsive Adjustments for Features */
@media (max-width: 768px) {
    .filter-pill { padding: 8px 12px; font-size: 12px; }
    .invoice-table { font-size: 14px; }
    .invoice-table th, .invoice-table td { padding: 8px !important; }
    
    /* Chart responsive adjustments */
    .chart-content {
        min-height: 250px !important;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: center;
    }
    
    .chart-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .filter-pill { padding: 6px 10px; font-size: 11px; }
    .invoice-table { font-size: 12px; }
    .pagination-btn { padding: 6px 10px; min-width: 35px; font-size: 12px; }
    
    /* Chart responsive adjustments for small screens */
    .chart-content {
        min-height: 200px !important;
    }
    
    .chart-container {
        padding: 16px;
    }
    
    .chart-title {
        font-size: 16px;
    }
    
    .chart-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .chart-legend {
        gap: 12px;
    }
    
    .legend-item {
        font-size: 12px;
    }
}

/* Back to Top Button Styles */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to left, rgba(253, 224, 71, 0.8), rgba(34, 197, 94, 0.8));
    border: none;
    border-radius: 50%;
    color: #0f1115;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to left, rgba(253, 224, 71, 0.9), rgba(34, 197, 94, 0.9));
    opacity: 1;
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* How It Works Section Responsive Adjustments */
@media (max-width: 768px) {
    #how-it-works .md\:w-1\/4, #how-it-works .md\:w-3\/4 {
        width: 100%;
    }

    #how-it-works .flex-col.md\:flex-row {
        flex-direction: column;
        align-items: center;
    }

    #how-it-works .timeline-dot {
        margin-bottom: 1rem;
    }

    #how-it-works .timeline-dot::before {
        display: none;
    }

    #how-it-works .timeline-line {
        display: none;
    }
}

/* Testimonials Section Responsive Adjustments */
@media (max-width: 1024px) {
    #testimonials .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #testimonials .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    #testimonials .text-4xl {
        font-size: 2.5rem;
    }

    .testimonial-card {
        padding: 32px 24px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .testimonials-carousel {
        padding: 0 40px;
    }
    
    .carousel-navigation {
        width: calc(100% + 80px);
        left: -40px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .testimonial-card {
        padding: 24px 20px;
        min-height: 280px;
    }
}

/* Free Trial/Contact Section Responsive Adjustments */
@media (max-width: 768px) {
    #free-trial .max-w-3xl {
        padding: 24px;
    }

    #free-trial .text-4xl {
        font-size: 2.5rem;
    }
}

/* Footer Responsive Adjustments */
@media (max-width: 768px) {
    footer .grid-cols-3 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer .space-y-2 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}
