/* Enhanced Theme8 - Advanced Animations & Effects */

/* === KEYFRAME ANIMATIONS === */
@keyframes slide-in-bottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.3) translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(2px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes slide-up-stagger {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes pulse-soft {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes hero-entrance {
    0% {
        transform: scale(0.8) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

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

@keyframes scale-up-center {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(138, 43, 226, 0.5);
    }
}

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

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

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

@keyframes expand-width {
    0% {
        width: 0;
    }
    100% {
        width: 6rem;
    }
}

@keyframes grid-cascade {
    0% {
        transform: translateY(30px) rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes particle-1 {
    0% {
        transform: translate(0, 0) scale(0);
    }
    50% {
        transform: translate(-10px, -15px) scale(1);
    }
    100% {
        transform: translate(-20px, -30px) scale(0);
    }
}

@keyframes particle-2 {
    0% {
        transform: translate(0, 0) scale(0);
    }
    50% {
        transform: translate(15px, -10px) scale(1);
    }
    100% {
        transform: translate(30px, -20px) scale(0);
    }
}

@keyframes particle-3 {
    0% {
        transform: translate(0, 0) scale(0);
    }
    50% {
        transform: translate(-5px, 10px) scale(1);
    }
    100% {
        transform: translate(-10px, 20px) scale(0);
    }
}

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

@keyframes sparkle-2 {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(-180deg);
    }
}

@keyframes sparkle-3 {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes rainbow-text {
    0% {
        color: #ff0000;
    }
    16% {
        color: #ff8000;
    }
    33% {
        color: #ffff00;
    }
    50% {
        color: #00ff00;
    }
    66% {
        color: #0080ff;
    }
    83% {
        color: #8000ff;
    }
    100% {
        color: #ff0000;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.05);
    }
    75% {
        transform: scale(1.15);
    }
}

/* === ANIMATION CLASSES === */
.animate-slide-in-bottom {
    animation: slide-in-bottom 0.6s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.8s ease-out;
}

.animate-bounce-in {
    animation: bounce-in 1s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

.animate-zoom-in {
    animation: zoom-in 0.6s ease-out;
}

.animate-slide-up-stagger {
    animation: slide-up-stagger 0.8s ease-out;
}

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

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

.animate-hero-entrance {
    animation: hero-entrance 1.2s ease-out;
}

.animate-gradient-flow {
    background-size: 400% 400%;
    animation: gradient-flow 8s ease infinite;
}

.animate-scale-up-center {
    animation: scale-up-center 0.8s ease-out;
}

.animate-text-glow {
    animation: text-glow 2s ease-in-out infinite;
}

.animate-text-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 100%;
    animation: text-shimmer 2s infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

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

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

.animate-expand-width {
    animation: expand-width 1s ease-out 0.5s both;
}

.animate-grid-cascade {
    animation: grid-cascade 0.8s ease-out;
}

.animate-rainbow-text {
    animation: rainbow-text 3s linear infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Delay classes */
.animate-delay-100 {
    animation-delay: 100ms;
}

.animate-delay-200 {
    animation-delay: 200ms;
}

.animate-delay-300 {
    animation-delay: 300ms;
}

.animate-delay-500 {
    animation-delay: 500ms;
}

.animate-delay-700 {
    animation-delay: 700ms;
}

/* === ADVANCED EFFECTS === */
.animate-magnetic-pull:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.animate-3d-cascade {
    perspective: 1000px;
}

.animate-3d-cascade > * {
    transform-style: preserve-3d;
    animation: grid-cascade 0.8s ease-out forwards;
}

.animate-stagger-children > * {
    animation: slide-up-stagger 0.6s ease-out forwards;
}

.animate-stagger-children > *:nth-child(1) {
    animation-delay: 0ms;
}

.animate-stagger-children > *:nth-child(2) {
    animation-delay: 150ms;
}

.animate-stagger-children > *:nth-child(3) {
    animation-delay: 300ms;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    font-weight: 400;
}

/* Custom color utilities */
.bg-primary-color {
    background: linear-gradient(135deg, var(--gradient-start-color), var(--gradient-end-color));
}

.bg-primary-color-hover:hover {
    background: linear-gradient(135deg, var(--primary-dark-color), var(--secondary-color));
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.bg-secondary-color {
    background-color: var(--secondary-color);
}

.bg-footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.bg-accent-hover:hover {
    background-color: var(--accent-color);
}

/* Enhanced card components */
.card {
    background: var(--background-light-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--card-shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--hover-color), var(--hover-color));
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced cards with 3D effects - Override */
.card {
    background: var(--background-light-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px var(--card-shadow-color);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%) skewX(-25deg);
    transition: transform 0.8s;
}

.card:hover::before {
    transform: translateX(100%) skewX(-25deg);
}

.card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Enhanced buttons with advanced animations */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark-color), var(--secondary-color));
    transform: translateY(-4px) scale(1.05) rotateX(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Enhanced navigation */
.nav-link {
    position: relative;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
}

h2 {
    color: var(--font-dark-color);
    font-size: 2rem;
}

h3 {
    color: var(--font-color);
    font-size: 1.5rem;
}

/* Enhanced forms */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-light-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--font-dark-color);
}

/* Enhanced hero section */
.hero-gradient {
    background: linear-gradient(135deg, var(--gradient-start-color), var(--gradient-end-color));
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
}

/* Enhanced pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination-item {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

/* Enhanced breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light-color);
}

.breadcrumbs a {
    color: var(--text-light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs-separator {
    color: var(--text-muted-color);
}

/* Utility classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    background-color: var(--highlight-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

/* Text color utilities */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--success-color);
}

.text-link {
    color: var(--accent-color);
}

/* Hover text utilities */
.hover-text-primary:hover {
    color: var(--primary-color);
}

.hover-text-secondary:hover {
    color: var(--secondary-color);
}

.hover-text-white:hover {
    color: white;
}

.hover-text-gray-200:hover {
    color: #e5e7eb;
}

/* Group hover text utilities */
.group:hover .group-hover-text-primary {
    color: var(--primary-color);
}

.group:hover .group-hover-text-secondary {
    color: var(--secondary-color);
}

.group:hover .group-hover-text-accent {
    color: var(--accent-color);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card {
        margin: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Custom hover effects for CSS variables */
.group:hover .group-hover-text-primary {
    color: var(--primary-color, var(--primary-color)) !important;
}

.group:hover .group-hover-text-secondary {
    color: var(--secondary-color, var(--secondary-color)) !important;
}

.group:hover .group-hover-text-accent {
    color: var(--accent-color, var(--accent_color)) !important;
}

.hover-text-primary:hover {
    color: var(--primary-color, var(--primary-color)) !important;
}

.hover-text-white:hover {
    color: white !important;
}

.hover-text-gray-200:hover {
    color: #e5e7eb !important;
}

/* Text color utilities with CSS variables */
.text-primary {
    color: var(--primary-color, var(--primary-color));
}

.text-secondary {
    color: var(--secondary-color, var(--secondary-color));
}

.text-accent {
    color: var(--accent-color, var(--accent_color));
}

.text-danger {
    color: var(--danger-color, #ef4444);
}

.text-success {
    color: var(--success-color, #10b981);
}

.text-link {
    color: var(--link-color, var(--accent-color, #3b82f6));
}

/* Fix for hover effect on button with dynamic text color */
.btn.hover-text-dynamic:hover {
    color: var(--hover-text-color, #1f2937) !important;
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

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

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

/* === ADDITIONAL ADVANCED ANIMATIONS === */

/* Complex animation sequences */
@keyframes bounce-in-sequence {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(-90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes zoom-in-rotate {
    0% {
        transform: scale(0) rotate(-360deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes text-wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-2px);
    }
    75% {
        transform: translateY(2px);
    }
}

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

@keyframes section-reveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes grid-3d-cascade {
    0% {
        transform: translateZ(-200px) rotateY(45deg);
        opacity: 0;
    }
    100% {
        transform: translateZ(0) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes card-float-in {
    0% {
        transform: translateY(100px) rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes magnetic-pull {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05) translateY(-5px);
    }
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
}

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

@keyframes text-glow-hover {
    0% {
        text-shadow: none;
    }
    100% {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
    }
}

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

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateX(4px) translateY(2px);
    }
    50% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes section-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes type-writer {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
}

@keyframes fade-in-words {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes magnetic-hover {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1) translateY(-2px);
    }
}

@keyframes wave-entrance {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes flip-in-y {
    0% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0);
        opacity: 1;
    }
}

@keyframes rubber-band {
    0% {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes stretch-width {
    0% {
        width: 1.5rem;
    }
    100% {
        width: 6rem;
    }
}

@keyframes cards-cascade {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes glow-in {
    0% {
        opacity: 0;
        box-shadow: none;
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
}

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

@keyframes text-focus-in {
    0% {
        filter: blur(12px);
        opacity: 0;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

/* Animation classes */
.animate-bounce-in-sequence {
    animation: bounce-in-sequence 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-zoom-in-rotate {
    animation: zoom-in-rotate 1s ease-out;
}

.animate-text-wave {
    animation: text-wave 1s ease-in-out infinite;
}

.animate-gradient-x {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradient-x 4s ease infinite;
}

.animate-section-reveal {
    animation: section-reveal 1s ease-out;
}

.animate-grid-3d-cascade {
    animation: grid-3d-cascade 0.8s ease-out;
}

.animate-card-float-in {
    animation: card-float-in 0.8s ease-out;
}

.animate-magnetic-pull:hover {
    animation: magnetic-pull 0.3s ease-out forwards;
}

.animate-pulse-ring {
    animation: pulse-ring 2s infinite;
}

.animate-text-bounce {
    animation: text-bounce 0.6s ease-in-out infinite;
}

.animate-text-glow-hover:hover {
    animation: text-glow-hover 0.3s ease-in-out forwards;
}

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

.animate-bounce-arrow {
    animation: bounce-arrow 1s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-slow 4s linear infinite reverse;
}

.animate-section-slide-in {
    animation: section-slide-in 0.8s ease-out;
}

.animate-type-writer {
    overflow: hidden;
    white-space: nowrap;
    animation: type-writer 2s steps(40, end);
}

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

.animate-fade-in-words {
    animation: fade-in-words 0.8s ease-out;
}

.animate-bounce-in-left {
    animation: bounce-in-left 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

.animate-magnetic-hover:hover {
    animation: magnetic-hover 0.3s ease-out forwards;
}

.animate-wave-entrance {
    animation: wave-entrance 1s ease-out;
}

.animate-flip-in-y {
    animation: flip-in-y 0.8s ease-out;
}

.animate-rubber-band {
    animation: rubber-band 1s ease-out;
}

.animate-stretch-width {
    animation: stretch-width 1s ease-out 0.5s forwards;
}

.animate-cards-cascade {
    animation: cards-cascade 0.8s ease-out;
}

.animate-glow-in {
    animation: glow-in 1s ease-out;
}

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

.animate-text-focus-in {
    animation: text-focus-in 1s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.animate-fade-in-scale {
    animation: fadeInUp 0.6s ease-out, zoom-in 0.6s ease-out;
}

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

/* Advanced hover effects */
.animate-3d-grid-reveal > * {
    animation: grid-3d-cascade 0.8s ease-out;
}

.animate-card-morph {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-shimmer-bg:hover {
    background-size: 200% 200%;
    animation: gradient-shift 2s ease infinite;
}

.animate-logo-float {
    animation: float-slow 4s ease-in-out infinite;
}

.animate-text-wave-hover:hover {
    animation: text-wave 0.5s ease-in-out;
}

.animate-expand-bar {
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-text-reveal {
    animation: fade-in-words 0.8s ease-out 0.3s both;
}

.animate-buttons-slide-up {
    animation: slide-up-stagger 0.6s ease-out 0.5s both;
}

.animate-text-flicker:hover {
    animation: text-glow 0.5s ease-in-out;
}

.animate-arrow-dance:hover {
    animation: bounce-arrow 0.5s ease-in-out infinite;
}

.animate-magnetic-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.animate-rainbow-overlay {
    background: linear-gradient(45deg, rgba(255, 0, 150, 0.1), rgba(0, 255, 255, 0.1), rgba(255, 255, 0, 0.1));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.animate-radial-pulse {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.animate-particle-1 {
    animation: particle-1 2s ease-in-out infinite;
}

.animate-particle-2 {
    animation: particle-2 2.5s ease-in-out infinite;
}

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

.animate-particle-4 {
    animation: particle-4 1.8s ease-in-out infinite;
}

.card-body a,
.prose a{
    color: var(--primary-color) !important;
}

.prose ol {
    list-style: decimal;
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.prose ul {
    list-style: disc;
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose ol ol {
    list-style: lower-alpha;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose ul ul {
    list-style: circle;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose .pb-12 {
    margin: 20px 0;
    padding-bottom: 0;
}

.home-text{
    color: var(--homepage-text-color) !important;
}