/* Enhanced Statistics Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

@keyframes float-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.stat-counter {
    animation: float-up 0.8s ease-out;
}

.stat-card {
    animation: scale-in 0.6s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.trust-badge {
    animation: pulse-glow 2s infinite;
}

/* Navigation Styles */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* Ensure proper spacing for centered logo layout */
.navbar-container {
    position: relative;
}

/* Make sure left and right sections have equal width to keep logo centered */
.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
}

/* Mobile layout adjustments */
@media (max-width: 1023px) {
    .navbar-container {
        flex-direction: column;
    }
    
    .nav-logo {
        position: static;
        transform: none;
        order: 2;
    }
    
    .nav-left {
        order: 1;
        flex: none;
    }
    
    .nav-right {
        order: 3;
        flex: none;
    }
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Arrow Animation */
.dropdown-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-trigger:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Menu Item Animations */
.mobile-menu-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-menu-item:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-menu-item:nth-child(6) { transition-delay: 0.6s; }

/* Enhanced Dropdown Styles */
.dropdown-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.dropdown-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

/* Improved Mobile Menu Styling */
.mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.mobile-menu-section {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.mobile-menu-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Smooth transitions for all interactive elements */
.nav-link, .dropdown-trigger, .mobile-menu a, .mobile-menu button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.nav-link:focus, .dropdown-trigger:focus, .mobile-menu a:focus, .mobile-menu button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Improved hamburger animation */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Button Shimmer Effect */
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Navigation scroll blur effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for navigation */
#navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile menu styles */
.hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Notification Styles */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

/* Lazy Loading Styles */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Hero Section Elegant Shapes and Animations */
.elegant-shape {
    opacity: 0;
    transform: translateY(-150px);
    animation: elegantShapeEnter 2.4s ease-out forwards;
    --initial-rotate: calc(var(--shape-rotate, 0deg) - 15deg);
    --final-rotate: var(--shape-rotate, 0deg);
}

@keyframes elegantShapeEnter {
    0% {
        opacity: 0;
        transform: translateY(-150px) rotate(var(--initial-rotate, 0deg));
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(var(--final-rotate, 0deg));
    }
}

/* Floating animation for shapes */
.animate-float-slow {
    animation: floatSlow 12s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(var(--shape-rotate, 0deg));
    }
    50% {
        transform: translateY(15px) rotate(var(--shape-rotate, 0deg));
    }
}

/* Fade up animation for content */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced button shimmer effect */
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

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

/* Bounce animation for scroll indicator */
.animate-bounce-slow {
    animation: bounceSlow 2s infinite;
}

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

/* Make shapes more pill-shaped (rounded rectangles) */
.elegant-shape {
    border-radius: 9999px; /* This creates pill shapes */
}

/* Responsive adjustments for shapes */
@media (max-width: 768px) {
    .elegant-shape {
        transform: scale(0.7);
    }
    
    .elegant-shape:nth-child(1) {
        left: -25% !important;
        top: 5% !important;
        width: 300px !important;
        height: 60px !important;
    }
    
    .elegant-shape:nth-child(2) {
        right: -20% !important;
        top: 55% !important;
        width: 280px !important;
        height: 55px !important;
    }
    
    .elegant-shape:nth-child(3) {
        left: -5% !important;
        top: 35% !important;
        width: 400px !important;
        height: 45px !important;
    }
    
    .elegant-shape:nth-child(4) {
        right: 5% !important;
        top: 0% !important;
        width: 180px !important;
        height: 40px !important;
    }
    
    .elegant-shape:nth-child(5) {
        left: 10% !important;
        top: 65% !important;
        width: 200px !important;
        height: 40px !important;
    }
}

/* Ensure shapes are behind content */
.elegant-shape {
    z-index: 1;
}

/* Hero content z-index */
.hero-content {
    z-index: 10;
    position: relative;
}

/* Smooth transitions for all hero elements */
.hero-content * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MONO AI Style Hero Enhancements */
.hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

/* Enhanced typography for MONO AI style */
.hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.hero-description {
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

/* Button hover effects matching MONO AI */
.cta-button-primary {
    background: #111827;
    color: white;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cta-button-primary:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cta-button-secondary {
    background: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-secondary:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    transform: translateY(-1px);
}

/* Responsive adjustments for MONO AI style */
@media (max-width: 640px) {
    .hero-title {
        font-size: 3rem;
        line-height: 0.95;
    }
    
    .hero-description {
        font-size: 1.125rem;
        line-height: 1.5;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .hero-description {
        font-size: 1.875rem;
    }
}

/* Enhanced fade-up animation for MONO AI style */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUpEnhanced 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeUpEnhanced {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle background pattern for MONO AI aesthetic */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

/* Grid Pattern Background Styles */
.grid-pattern {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.grid-pattern svg {
    width: 100%;
    height: 100%;
    fill: rgba(156, 163, 175, 0.3);
    stroke: rgba(156, 163, 175, 0.3);
}

.grid-pattern-highlighted {
    fill: rgba(156, 163, 175, 0.6);
    stroke: rgba(156, 163, 175, 0.6);
}

/* Grid pattern with radial mask effect */
.grid-pattern-masked {
    mask-image: radial-gradient(400px circle at center, white, transparent);
    -webkit-mask-image: radial-gradient(400px circle at center, white, transparent);
}

/* Grid pattern with linear mask effect */
.grid-pattern-linear-mask {
    mask-image: linear-gradient(to bottom right, white, transparent, transparent);
    -webkit-mask-image: linear-gradient(to bottom right, white, transparent, transparent);
}

/* Responsive grid pattern adjustments */
@media (max-width: 768px) {
    .grid-pattern-masked {
        mask-image: radial-gradient(200px circle at center, white, transparent);
        -webkit-mask-image: radial-gradient(200px circle at center, white, transparent);
    }
    
    .grid-pattern svg {
        fill: rgba(156, 163, 175, 0.2);
        stroke: rgba(156, 163, 175, 0.2);
    }
    
    .grid-pattern-highlighted {
        fill: rgba(156, 163, 175, 0.4);
        stroke: rgba(156, 163, 175, 0.4);
    }
}

@media (max-width: 480px) {
    .grid-pattern-masked {
        mask-image: radial-gradient(150px circle at center, white, transparent);
        -webkit-mask-image: radial-gradient(150px circle at center, white, transparent);
    }
}

/* Grid pattern animation */
.grid-pattern {
    opacity: 0;
    animation: gridPatternFadeIn 2s ease-out 1s forwards;
}

@keyframes gridPatternFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Feature Steps Section Styles */
.feature-step {
    opacity: 0.3;
    transition: all 0.5s ease-in-out;
}

.feature-step.active {
    opacity: 1;
    transform: translateX(0);
}

.feature-step:not(.active) {
    transform: translateX(-10px);
}

.step-indicator {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-indicator.active {
    background: #3b82f6;
    border-color: #3b82f6;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.step-indicator.completed {
    background: #10b981;
    border-color: #10b981;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.step-number {
    transition: all 0.3s ease-in-out;
}

.step-check {
    transition: all 0.3s ease-in-out;
}

.step-indicator.active .step-number {
    opacity: 0;
    transform: scale(0.8);
}

.step-indicator.active .step-check {
    opacity: 1;
    transform: scale(1.2);
}

.step-indicator.completed .step-number {
    opacity: 0;
    transform: scale(0.8);
}

.step-indicator.completed .step-check {
    opacity: 1;
    transform: scale(1.1);
}

/* Feature Image Animations */
.feature-image {
    transform: translateY(100px) rotateX(-20deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-image.active {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
}

.feature-image.exit {
    transform: translateY(-100px) rotateX(20deg);
    opacity: 0;
}

/* Progress Bar Animation */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Hover Effects */
.feature-step:hover .step-indicator {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-step:hover .step-indicator.active {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.feature-step:hover .step-indicator.completed {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Image Hover Effects */
.feature-image img {
    transition: transform 0.3s ease-in-out;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Responsive Design for Feature Steps */
@media (max-width: 768px) {
    .feature-step {
        gap: 1rem;
    }
    
    .step-indicator {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .step-indicator.active {
        transform: scale(1.05);
    }
    
    .step-indicator.completed {
        transform: scale(1.02);
    }
}

@media (max-width: 480px) {
    .feature-step {
        gap: 0.75rem;
    }
    
    .step-indicator {
        width: 2rem;
        height: 2rem;
    }
    
    .step-number,
    .step-check {
        font-size: 0.875rem;
    }
}

/* Animation Keyframes */
@keyframes stepPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.step-indicator.pulse {
    animation: stepPulse 2s infinite;
}

@keyframes imageSlideIn {
    0% {
        transform: translateY(100px) rotateX(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes imageSlideOut {
    0% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotateX(20deg);
        opacity: 0;
    }
}

.feature-image.slide-in {
    animation: imageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-image.slide-out {
    animation: imageSlideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Loading States */
.feature-step.loading .step-indicator {
    background: #f3f4f6;
    border-color: #d1d5db;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Accessibility Improvements */
.feature-step:focus-within .step-indicator {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .step-indicator {
        border-width: 3px;
    }
    
    .step-indicator.active {
        background: #1d4ed8;
        border-color: #1d4ed8;
    }
    
    .step-indicator.completed {
        background: #047857;
        border-color: #047857;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .feature-step,
    .step-indicator,
    .feature-image,
    .step-number,
    .step-check {
        transition: none;
    }
    
    .feature-image {
        transform: none;
    }
    
    .step-indicator.active,
    .step-indicator.completed {
        transform: none;
    }
}


/* Carousel Navigation Buttons */
.carousel-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    border: none;
    background: transparent;
    color: #6b7280;
    height: 2.5rem;
    width: 2.5rem;
    cursor: pointer;
}

.carousel-nav-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.carousel-nav-button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.carousel-nav-button:not(:disabled):hover {
    background: #f3f4f6;
    color: #374151;
}

.carousel-nav-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

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

.carousel-dot:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

.carousel-content {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

/* Responsive Design for Featured Challenges */
@media (max-width: 768px) {
    .challenge-card {
        min-width: 280px;
        max-width: 320px;
        padding-left: 16px;
    }
    
    .challenge-card-image-container {
        height: 24rem;
    }
    
    .challenge-card-content {
        padding: 1.25rem;
    }
    
    .challenge-card-title {
        font-size: 1.125rem;
    }
    
    .challenge-card-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .challenge-card {
        min-width: 260px;
        max-width: 300px;
        padding-left: 12px;
    }
    
    .challenge-card-image-container {
        height: 20rem;
    }
    
    .challenge-card-content {
        padding: 1rem;
    }
    
    .challenge-card-title {
        font-size: 1rem;
    }
    
    .challenge-card-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
}

/* Touch/Swipe Support for Mobile */
@media (max-width: 768px) {
    .carousel-content {
        touch-action: pan-x;
        cursor: grab;
    }
    
    .carousel-content:active {
        cursor: grabbing;
    }
}

/* Loading States */
.challenge-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.challenge-card.loading .challenge-card-image {
    background: #f3f4f6;
    animation: pulse 2s infinite;
}

/* Accessibility Improvements */
.challenge-card-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.carousel-nav-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .challenge-card-overlay {
        background: linear-gradient(
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    .carousel-dot.active {
        background: #1d4ed8;
    }
    
    .carousel-nav-button:not(:disabled):hover {
        background: #e5e7eb;
        color: #111827;
    }
}

/* Reduced motion support for carousel */
@media (prefers-reduced-motion: reduce) {
    .challenge-card,
    .challenge-card-link,
    .challenge-card-image,
    .challenge-card-cta,
    .challenge-card-cta-icon,
    .carousel-content {
        transition: none;
    }
    
    .challenge-card:hover {
        transform: none;
    }
    
    .challenge-card-link:hover .challenge-card-image {
        transform: none;
    }
    
    .challenge-card-link:hover .challenge-card-cta {
        transform: none;
    }
    
    .challenge-card-link:hover .challenge-card-cta-icon {
        transform: none;
    }
}

/* Testimonials Section Styles */
.testimonial-slide {
    transition: all 0.3s ease-in-out;
}

.testimonial-slide:hover {
    transform: translateY(-2px);
}

/* Testimonial card hover effects */
.testimonial-slide .bg-white {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide:hover .bg-white {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Star rating animation */
.testimonial-slide .text-amber-500 {
    transition: all 0.2s ease-in-out;
}

.testimonial-slide:hover .text-amber-500 {
    transform: scale(1.1);
}

/* User group badge styles */
.testimonial-slide .bg-blue-100,
.testimonial-slide .bg-green-100,
.testimonial-slide .bg-purple-100 {
    transition: all 0.2s ease-in-out;
}

.testimonial-slide:hover .bg-blue-100,
.testimonial-slide:hover .bg-green-100,
.testimonial-slide:hover .bg-purple-100 {
    transform: scale(1.05);
}

/* Testimonials carousel navigation */
#testimonials .carousel-nav-button {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

#testimonials .carousel-nav-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Removed transform: scale() to prevent position shifting */
}

#testimonials .carousel-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Testimonials pagination dots */
#testimonials .carousel-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#testimonials .carousel-dot:hover {
    transform: scale(1.2);
    background: #6b7280;
}

#testimonials .carousel-dot.active {
    background: #3b82f6;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Testimonials responsive design */
@media (max-width: 768px) {
    #testimonials .testimonial-slide {
        padding: 0 1rem;
    }
    
    #testimonials .testimonial-slide .bg-white {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    #testimonials .testimonial-slide .bg-white {
        padding: 1rem;
    }
    
    #testimonials .testimonial-slide .w-12 {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    #testimonials .testimonial-slide .w-6 {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Testimonials fade-in animation */
.testimonial-slide {
    opacity: 0;
    transform: translateY(20px);
    animation: testimonialFadeIn 0.6s ease-out forwards;
}

.testimonial-slide:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-slide:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-slide:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* Testimonials section background pattern */
#testimonials {
    position: relative;
    overflow: hidden;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#testimonials > * {
    position: relative;
    z-index: 1;
}

/* Featured Challenges Filter and Animation Styles */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter button active state */
.filter-btn.active {
    background: linear-gradient(to right, #2563eb, #9333ea) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Ensure inactive filter buttons have proper styling */
.filter-btn:not(.active) {
    background: white !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

/* Challenge card hover effects */
.challenge-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Status indicator styles */
.status-open {
    color: #10b981;
}

.status-running {
    color: #f59e0b;
}

.status-closed {
    color: #ef4444;
}

/* Card content spacing */
.challenge-card .p-6 {
    padding: 1.5rem;
}

/* Responsive adjustments for challenge cards */
@media (max-width: 768px) {
    .challenge-card {
        margin-bottom: 1rem;
    }
    
    .challenge-card .p-6 {
        padding: 1rem;
    }
}

/* Filter button responsive design */
@media (max-width: 640px) {
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Ready to Innovate CTA Section */
#ready-to-innovate {
    background-color: #ffffff; /* White section background */
}

/* Gradient card styling */
#ready-to-innovate .bg-gradient-to-br {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #000000 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Card hover effect */
#ready-to-innovate .bg-gradient-to-br:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Plus pattern overlay on card - always visible */
#ready-to-innovate .bg-gradient-to-br .opacity-20 {
    opacity: 0.3 !important;
}

/* Ensure plus pattern is always visible and properly positioned */
#ready-to-innovate .bg-gradient-to-br svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3 !important;
}

/* Content z-index to appear above pattern */
#ready-to-innovate .bg-gradient-to-br .relative.z-10 {
    position: relative;
    z-index: 10;
}

/* Ensure pattern container is always visible */
#ready-to-innovate .bg-gradient-to-br .absolute.inset-0.-z-10.opacity-20 {
    opacity: 0.3 !important;
    z-index: 1;
}

/* Force pattern visibility - override any conflicting rules */
#ready-to-innovate .bg-gradient-to-br .absolute.inset-0.-z-10 {
    opacity: 0.3 !important;
    display: block !important;
    visibility: visible !important;
}

/* Ensure SVG pattern is always visible */
#ready-to-innovate .bg-gradient-to-br .absolute.inset-0.-z-10 svg {
    opacity: 0.3 !important;
    display: block !important;
    visibility: visible !important;
}

#ready-to-innovate h2 {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#ready-to-innovate p {
    color: #dbeafe; /* blue-100 */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}



/* Additional responsive adjustments for CTA buttons */

/* Footer Styles */
footer {
    position: relative;
    background: white;
}

/* Footer gradient overlay */
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Footer logo styling */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-logo-icon::before {
    content: '';
    width: 1rem;
    height: 1rem;
    background: white;
    border-radius: 0.125rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Footer column headers */
.footer-column h4 {
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

/* Mobile-specific footer improvements */
@media (max-width: 768px) {
    .footer-column h4 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-column ul {
        margin-bottom: 0;
    }
    
    .footer-column ul li {
        margin-bottom: 0.5rem;
    }
    
    .footer-column ul li:last-child {
        margin-bottom: 0;
    }
    
    /* Ensure Product and Company columns are side by side on mobile */
    .grid.grid-cols-2.gap-6.md\\:contents {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Tablet and desktop - use contents to maintain original layout */
@media (min-width: 768px) {
    .grid.grid-cols-2.gap-6.md\\:contents {
        display: contents;
    }
}

/* Footer links */
.footer-column ul li a {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

.footer-column ul li a:hover {
    color: #111827;
}

/* Social media icons */
.footer-social a {
    color: #9ca3af;
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

.footer-social a:hover {
    color: #6b7280;
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #6b7280;
}

.footer-legal a {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-legal a:hover {
    color: #111827;
}

/* Responsive footer adjustments */
@media (max-width: 1024px) {
    .footer-column {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0;
    }
    
    .footer-logo {
        justify-content: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .footer-column {
        text-align: left;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-legal {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    footer {
        padding: 2rem 0;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .footer-column {
        margin-bottom: 1.5rem;
    }
    
    .footer-column h4 {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-column ul li a {
        font-size: 0.8rem;
    }
    
    .footer-copyright,
    .footer-legal a {
        font-size: 0.8rem;
    }
}


/* Marketplace/Listings Preview Section Styles */
.marketplace-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.marketplace-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.marketplace-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.marketplace-item:hover::before {
    opacity: 1;
}

/* Marketplace item image hover effects */
.marketplace-item img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-item:hover img {
    transform: scale(1.05);
}

/* Marketplace item content */
.marketplace-item .p-6 {
    position: relative;
    z-index: 2;
}

/* Line clamp for description text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Marketplace tag styles */
.marketplace-item .inline-flex {
    transition: all 0.2s ease-in-out;
}

.marketplace-item:hover .inline-flex {
    transform: scale(1.05);
}

/* Marketplace CTA button styles */
.marketplace-item button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-item 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;
}

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

/* Marketplace section background pattern */
#marketplace-preview {
    position: relative;
    overflow: hidden;
}

#marketplace-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#marketplace-preview > * {
    position: relative;
    z-index: 1;
}

/* Marketplace item animation on scroll */
.marketplace-item {
    opacity: 0;
    transform: translateY(30px);
    animation: marketplaceItemFadeIn 0.6s ease-out forwards;
}

.marketplace-item:nth-child(1) {
    animation-delay: 0.1s;
}

.marketplace-item:nth-child(2) {
    animation-delay: 0.2s;
}

.marketplace-item:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* Marketplace responsive design */
@media (max-width: 768px) {
    .marketplace-item {
        margin-bottom: 1rem;
    }
    
    .marketplace-item .p-6 {
        padding: 1rem;
    }
    
    .marketplace-item h3 {
        font-size: 1rem;
    }
    
    .marketplace-item p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .marketplace-item .inline-flex {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 640px) {
    .marketplace-item {
        margin-bottom: 0.75rem;
    }
    
    .marketplace-item .p-6 {
        padding: 0.75rem;
    }
    
    .marketplace-item h3 {
        font-size: 0.9rem;
    }
    
    .marketplace-item p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .marketplace-item button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Marketplace section header responsive */
@media (max-width: 1024px) {
    #marketplace-preview .flex.lg\\:flex-row {
        flex-direction: column;
        text-align: center;
    }
    
    #marketplace-preview .mt-6.lg\\:mt-0 {
        margin-top: 1.5rem;
    }
}

/* High contrast mode support for marketplace */
@media (prefers-contrast: high) {
    .marketplace-item {
        border-width: 2px;
        border-color: #374151;
    }
    
    .marketplace-item:hover {
        border-color: #7c3aed;
    }
    
    .marketplace-item button:hover {
        background: #7c3aed !important;
        color: white !important;
    }
}

/* Reduced motion support for marketplace */
@media (prefers-reduced-motion: reduce) {
    .marketplace-item,
    .marketplace-item img,
    .marketplace-item button,
    .marketplace-item .inline-flex {
        transition: none;
    }
    
    .marketplace-item:hover {
        transform: none;
    }
    
    .marketplace-item:hover img {
        transform: none;
    }
    
    .marketplace-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Partner Logos Styles for Featured Challenges */
.partner-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.partner-logos-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.partner-logos-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.partner-logo {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.partner-logo:hover {
    transform: scale(1.1);
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.partner-count {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.partner-count:hover {
    background-color: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    transform: scale(1.1);
}

/* Partner logos responsive design */
@media (max-width: 768px) {
    .partner-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .partner-logos-container {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .partner-logo,
    .partner-count {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .partner-count {
        font-size: 0.625rem;
    }
}

@media (max-width: 640px) {
    .partner-logos-label {
        font-size: 0.625rem;
    }
    
    .partner-logo,
    .partner-count {
        width: 1rem;
        height: 1rem;
    }
    
    .partner-count {
        font-size: 0.5rem;
    }
}

/* Partner logos animation on hover */
.challenge-card:hover .partner-logo {
    transform: scale(1.05);
}

.challenge-card:hover .partner-count {
    transform: scale(1.05);
}

/* Partner logos tooltip (for future enhancement) */
.partner-logo[title] {
    position: relative;
}

.partner-logo[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 0.25rem;
}

.partner-logo[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    z-index: 10;
}
