/* Funky Loader */
.funky-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
}

.loader-square {
    width: 20px;
    height: 20px;
    margin: 8px;
    background-color: #8b5cf6; /* Purple */
    animation: funky-loader 2s infinite;
}

.loader-square:nth-child(2) {
    animation-delay: -0.5s;
    background-color: #ec4899; /* Pink */
}

.loader-square:nth-child(3) {
    animation-delay: -1s;
    background-color: #f59e0b; /* Orange */
}

.loader-square:nth-child(4) {
    animation-delay: -1.5s;
    background-color: #10b981; /* Green */
}

@keyframes funky-loader {
    0%, 100% {
        transform: scale(1);
        border-radius: 0;
    }
    25% {
        transform: scale(1.5) rotate(45deg);
        border-radius: 50%;
    }
    50% {
        transform: scale(1);
        border-radius: 0;
    }
    75% {
        transform: scale(1.5) rotate(-45deg);
        border-radius: 50%;
    }
}

/* Preloader Styles */
.is-loading {
    /* overflow: hidden; */
}

#main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.is-loading #main-content {
    opacity: 1;
}

body:not(.is-loading) #main-content {
    opacity: 1;
}

/* Header Transition */
header {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Custom Animations */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

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

@keyframes confetti {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Lerp Text Animation */
@keyframes textLerp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes textLerpOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

/* Animation Classes */
.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Lerp Text Classes */
.lerp-text {
    animation: textLerp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.lerp-text-in {
    animation: textLerpIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

.lerp-text-out {
    animation: textLerpOut 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.lerp-text-delay-1 {
    animation-delay: 0.1s;
}

.lerp-text-delay-2 {
    animation-delay: 0.2s;
}

.lerp-text-delay-3 {
    animation-delay: 0.3s;
}

.lerp-text-delay-4 {
    animation-delay: 0.4s;
}

.lerp-text-delay-5 {
    animation-delay: 0.5s;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8b5cf6, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7c3aed, #db2777);
}

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

/* Custom Focus Styles */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-offset-2;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Custom Button Styles */
.btn-primary {
    @apply bg-gradient-to-r from-purple-600 to-pink-600 text-white font-semibold py-3 px-6 rounded-lg hover:from-purple-700 hover:to-pink-700 transform hover:scale-105 transition-all duration-200 shadow-lg;
}

.btn-secondary {
    @apply bg-white text-purple-600 font-semibold py-3 px-6 rounded-lg border border-purple-600 hover:bg-purple-50 transform hover:scale-105 transition-all duration-200;
}

/* Form Styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 focus:border-transparent transition-all duration-200;
}

.form-input:focus {
    @apply outline-none;
}

/* Card Styles */
.card {
    @apply bg-white rounded-2xl shadow-lg hover:shadow-2xl transition-all duration-300;
}

.card-hover {
    @apply transform hover:-translate-y-2 hover:shadow-2xl transition-all duration-300;
}

/* Text Styles */
.text-gradient {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .bg-gradient-to-r {
        background: #000 !important;
        color: #fff !important;
    }
}

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

/* 3D Cube Stat Animation */
.stat-item {
    perspective: 1000px;
}

.cube-container {
    position: relative;
    width: 100px;
    height: 60px; /* Adjust height based on font size */
    margin: 0 auto 0.5rem;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:hover .cube {
    transform: rotateX(-90deg);
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    backface-visibility: hidden;
}

.cube-face.front {
    transform: translateZ(30px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(30px);
}

@keyframes learnMorePulse {
  0% { transform: translateX(0) scale(1); box-shadow: 0 0 0 0 rgba(139,92,246,0.3); }
  50% { transform: translateX(6px) scale(1.08); box-shadow: 0 0 12px 4px rgba(139,92,246,0.15); }
  100% { transform: translateX(0) scale(1); box-shadow: 0 0 0 0 rgba(139,92,246,0.3); }
}
.learn-more-animate {
  /* animation: learnMorePulse 1.2s infinite cubic-bezier(0.4,0,0.2,1);
  will-change: transform, box-shadow; */
}
@media (max-width: 768px) {
  .learn-more-animate {
    animation-duration: 1.5s;
  }
}




