/* IDCXS Custom Styles - Complementing Tailwind CSS */

/* Custom Properties for Consistent Design */
:root {
    --color-mist-50: #fafafa;
    --color-mist-100: #f5f5f5;
    --color-mist-200: #e5e5e5;
    --color-mist-300: #d4d4d4;
    --color-mist-400: #a3a3a3;
    --color-mist-500: #737373;
    --color-mist-600: #525252;
    --color-mist-700: #404040;
    --color-mist-800: #262626;
    --color-mist-900: #171717;
    
    --color-morning-blue: #f0f9ff;
    --color-soft-gray: #f8fafc;
    --color-whisper-white: #ffffff;
    
    --font-inter: 'Inter', 'Helvetica', 'Arial', sans-serif;
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-tech: 'Orbitron', 'Courier New', monospace;
    --font-modern: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
    --font-elegant: 'Crimson Text', 'Georgia', serif;
    
    --shadow-minimal: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-gentle: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-ethereal: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--color-mist-800);
    background: linear-gradient(135deg, var(--color-soft-gray) 0%, var(--color-morning-blue) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Enhanced Typography */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-family: var(--font-inter);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-mist-900);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.prose h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.prose h3 {
    font-size: 1.5rem;
    line-height: 2rem;
}

.prose p {
    margin-bottom: 1.25rem;
    color: var(--color-mist-700);
}

.prose ul {
    margin-bottom: 1.25rem;
}

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

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Navigation Bar Fixed Positioning */
nav {
    position: sticky !important;
    top: 0 !important;
    transform: none !important;
    z-index: 50 !important;
}

@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 gradient-x {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

@keyframes float-1 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) translateX(-5px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-10px) translateX(-15px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translateY(-25px) translateX(15px) scale(1.3);
        opacity: 0.7;
    }
    66% {
        transform: translateY(-15px) translateX(-20px) scale(0.9);
        opacity: 0.3;
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.2;
    }
    40% {
        transform: translateY(-35px) translateX(-10px) scale(1.4);
        opacity: 0.6;
    }
    80% {
        transform: translateY(-5px) translateX(25px) scale(0.7);
        opacity: 0.3;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: white;
    }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

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

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

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

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

/* New floating animations for about page */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-180deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes twinkle-delayed {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

@keyframes twinkle-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

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

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

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

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes data-flow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes draw {
    0% {
        stroke-dasharray: 0 1000;
    }
    100% {
        stroke-dasharray: 1000 0;
    }
}

@keyframes morph-1 {
    0%, 100% {
        transform: rotate(45deg) scale(1) translate(0, 0);
        border-radius: 50%;
    }
    33% {
        transform: rotate(75deg) scale(1.1) translate(20px, -30px);
        border-radius: 30% 70% 40% 60%;
    }
    66% {
        transform: rotate(135deg) scale(0.9) translate(-20px, 30px);
        border-radius: 60% 40% 70% 30%;
    }
}

@keyframes morph-2 {
    0%, 100% {
        transform: rotate(-45deg) scale(1) translate(0, 0);
        border-radius: 50%;
    }
    33% {
        transform: rotate(-15deg) scale(1.2) translate(-30px, 20px);
        border-radius: 40% 60% 30% 70%;
    }
    66% {
        transform: rotate(-75deg) scale(0.8) translate(25px, -25px);
        border-radius: 70% 30% 60% 40%;
    }
}

@keyframes morph-3 {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        border-radius: 50%;
    }
    50% {
        transform: scale(1.3) translate(15px, -15px);
        border-radius: 30% 70% 60% 40%;
    }
}

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

@keyframes letter-float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-8px) rotate(var(--rotate, 0deg));
    }
}

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

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

@keyframes hologram-sweep {
    0% {
        transform: skew(-12deg) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: skew(-12deg) translateX(100%);
        opacity: 0;
    }
}

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

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

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

@keyframes pulse-intense {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

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

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

.animate-fade-in-scale {
    animation: fadeInScale 0.4s ease-out;
}

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

.animate-blob {
    animation: blob 7s infinite;
}

.animate-gradient-x {
    animation: gradient-x 3s ease infinite;
}

.animate-float-1 {
    animation: float-1 8s ease-in-out infinite;
    top: 20%;
    left: 10%;
}

.animate-float-2 {
    animation: float-2 6s ease-in-out infinite;
    top: 60%;
    right: 15%;
}

.animate-float-3 {
    animation: float-3 10s ease-in-out infinite;
    bottom: 30%;
    left: 70%;
}

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

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

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

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

.animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

/* New animation classes for about page */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delayed { animation: float-delayed 8s ease-in-out infinite 2s; }
.animate-float-slow { animation: float-slow 10s ease-in-out infinite 1s; }
.animate-twinkle { animation: twinkle 3s ease-in-out infinite; }
.animate-twinkle-delayed { animation: twinkle-delayed 4s ease-in-out infinite 1s; }
.animate-twinkle-slow { animation: twinkle-slow 5s ease-in-out infinite 2s; }

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

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

.animate-gradient-shift {
    background-size: 400% 400%;
    animation: gradient-shift 4s ease-in-out infinite;
}

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

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

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

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

.animate-morph-1 {
    animation: morph-1 8s ease-in-out infinite;
}

.animate-morph-2 {
    animation: morph-2 10s ease-in-out infinite;
}

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

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

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

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

.animate-separator-pulse {
    animation: separator-pulse 2.5s ease-in-out infinite;
}

.animate-hologram-sweep {
    animation: hologram-sweep 4s ease-in-out infinite;
}

.animate-word-reveal {
    animation: word-reveal 0.8s ease-out forwards;
}

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

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

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

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

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

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

.animation-delay-800 {
    animation-delay: 0.8s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-1200 {
    animation-delay: 1.2s;
}

.animation-delay-1400 {
    animation-delay: 1.4s;
}

.animation-delay-1600 {
    animation-delay: 1.6s;
}

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

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

/* Enhanced Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-ethereal);
}

.hover-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Custom Gradient Backgrounds */
.bg-gradient-mist {
    background: linear-gradient(135deg, var(--color-mist-50) 0%, var(--color-mist-100) 100%);
}

.bg-gradient-morning {
    background: linear-gradient(135deg, var(--color-whisper-white) 0%, var(--color-morning-blue) 100%);
}

.bg-gradient-dawn {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #f0f9ff 100%);
}

/* Enhanced Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gentle);
}

.btn-secondary {
    background: var(--color-whisper-white);
    border: 1px solid var(--color-mist-300);
    color: var(--color-mist-700);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-minimal);
}

.btn-secondary:hover {
    background: var(--color-mist-50);
    border-color: var(--color-mist-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Card Enhancements */
.card {
    background: var(--color-whisper-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-mist-200);
}

.card:hover {
    box-shadow: var(--shadow-gentle);
    transform: translateY(-4px);
}

.card-minimal {
    background: var(--color-whisper-white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-minimal);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-mist-100);
}

.card-minimal:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--color-mist-200);
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Image Enhancements */
.img-enhanced {
    border-radius: 1rem;
    box-shadow: var(--shadow-gentle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.img-enhanced:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-ethereal);
}

/* Form Enhancements */
.form-input {
    background: var(--color-whisper-white);
    border: 1px solid var(--color-mist-300);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-inter);
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading Animations */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Accessibility Enhancements */
.focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--color-mist-800);
    }
    
    .btn-primary {
        border: 2px solid var(--color-mist-900);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .card {
        border-radius: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .prose h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .nav,
    .footer,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--color-mist-400);
    }
    
    body {
        background: white;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--color-mist-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-mist-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-mist-500);
}

/* Selection Styling */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-mist-900);
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--color-mist-900);
}

/* Premium Hero Page Animations */
@keyframes morph-1 {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: rotate(45deg) scale(1.1);
        border-radius: 60% 40% 40% 60%;
    }
    50% {
        transform: rotate(45deg) scale(0.9);
        border-radius: 40% 60% 60% 40%;
    }
    75% {
        transform: rotate(45deg) scale(1.05);
        border-radius: 55% 45% 45% 55%;
    }
}

@keyframes morph-2 {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
        border-radius: 50%;
    }
    33% {
        transform: rotate(-45deg) scale(1.15);
        border-radius: 65% 35% 35% 65%;
    }
    66% {
        transform: rotate(-45deg) scale(0.85);
        border-radius: 35% 65% 65% 35%;
    }
}

@keyframes morph-3 {
    0%, 100% {
        transform: scale(1);
        border-radius: 50%;
    }
    20% {
        transform: scale(1.2);
        border-radius: 70% 30% 30% 70%;
    }
    40% {
        transform: scale(0.8);
        border-radius: 30% 70% 70% 30%;
    }
    60% {
        transform: scale(1.1);
        border-radius: 60% 40% 40% 60%;
    }
    80% {
        transform: scale(0.9);
        border-radius: 40% 60% 60% 40%;
    }
}

/* Premium Animation Classes */
.animate-morph-1 {
    animation: morph-1 20s ease-in-out infinite;
}

.animate-morph-2 {
    animation: morph-2 25s ease-in-out infinite;
}

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

/* Font Classes for Premium Typography */
.font-modern {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
}

.font-display {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    font-display: swap;
}

.font-elegant {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
}

/* Custom Ecosystem Cards Animation */
@keyframes ecosystemCardSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ecosystem-cards {
    counter-reset: card-counter;
}

.ecosystem-card {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: none;
}

/* Intersection Observer based animation trigger */
.ecosystem-cards.animate .ecosystem-card:nth-child(1) {
    animation: ecosystemCardSlideUp 0.8s ease-out 0.6s forwards;
}

.ecosystem-cards.animate .ecosystem-card:nth-child(2) {
    animation: ecosystemCardSlideUp 0.8s ease-out 0.8s forwards;
}

.ecosystem-cards.animate .ecosystem-card:nth-child(3) {
    animation: ecosystemCardSlideUp 0.8s ease-out 1.0s forwards;
}

.ecosystem-cards.animate .ecosystem-card:nth-child(4) {
    animation: ecosystemCardSlideUp 0.8s ease-out 1.2s forwards;
}

/* IDCXS Nexus Cards Animation System - Version 2.0 */
@keyframes nexusHeaderSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nexusCardReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Initial hidden state */
.nexus-header {
    opacity: 0;
}

.nexus-title,
.nexus-subtitle {
    opacity: 0;
}

.nexus-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(2px);
    will-change: opacity, transform, filter;
}

/* Animation trigger classes */
.nexus-header.animate .nexus-title {
    animation: nexusHeaderSlide 0.8s ease-out forwards;
}

.nexus-header.animate .nexus-subtitle {
    animation: nexusHeaderSlide 0.8s ease-out 0.2s forwards;
}

.nexus-cards-grid.animate .nexus-card[data-card="1"] {
    animation: nexusCardReveal 0.8s ease-out 0.6s forwards;
}

.nexus-cards-grid.animate .nexus-card[data-card="2"] {
    animation: nexusCardReveal 0.8s ease-out 0.8s forwards;
}

.nexus-cards-grid.animate .nexus-card[data-card="3"] {
    animation: nexusCardReveal 0.8s ease-out 1.0s forwards;
}

.nexus-cards-grid.animate .nexus-card[data-card="4"] {
    animation: nexusCardReveal 0.8s ease-out 1.2s forwards;
}

/* Remove all nexus animation CSS to prevent conflicts */
.nexus-header,
.nexus-title,
.nexus-subtitle,
.nexus-card,
.nexus-cards-grid {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
}
